module

RayTracer::Color

Constants

BLACK = color(0, 0, 0)
WHITE = color(1, 1, 1)

Instance methods

abs(c : COLOR)
Source
add(c1 : COLOR, c2 : COLOR)
Source
color(r : Float32, g : Float32, b : Float32)
Source
color(h : Int32)
Source
divide(c : COLOR, s : Float32)
Source
multiply(c : COLOR, s : Float32)
Source
multiply(c1 : COLOR, c2 : COLOR)
Source
subtract(c1 : COLOR, c2 : COLOR)
Source

Nested types