Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystal_ray_tracer
master
CrystalRayTracer
Camera
CheckerboardSurface
Color
DefaultScene
Intersection
Light
Plane
Ray
RayTracer
ShinySurface
Sphere
Surface
Thing
Vector
Generated using Crystal 1.14.0
2024-11-26 07:40:06 UTC
struct
CrystalRayTracer::
Color
CrystalRayTracer::Color
Struct
Value
Object
Defined in:
crystal_ray_tracer/color.cr
Constructors
.new
(r : Float64, g : Float64, b : Float64)
Class Method Summary
.mult
(v1, v2)
.plus
(v1, v2)
.scale
(k, v)
.toDrawingColor
(c)
Instance Method Summary
#b
: Float64
#g
: Float64
#r
: Float64
Constructor Detail
def self.
new
(r : Float64, g : Float64, b : Float64)
#
[
View source
]
Class Method Detail
def self.
mult
(v1, v2)
#
[
View source
]
def self.
plus
(v1, v2)
#
[
View source
]
def self.
scale
(k, v)
#
[
View source
]
def self.
toDrawingColor
(c)
#
[
View source
]
Instance Method Detail
def
b
: Float64
#
[
View source
]
def
g
: Float64
#
[
View source
]
def
r
: Float64
#
[
View source
]