module RayTracer::Color

Extended Modules

Direct including types

Defined in:

ray_tracer/color.cr

Constant Summary

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

Instance Method Summary

Instance Method Detail

def abs(c : COLOR) #

[View source]
def add(c1 : COLOR, c2 : COLOR) #

[View source]
def color(r : Float32, g : Float32, b : Float32) #

[View source]
def color(h : Int32) #

[View source]
def divide(c : COLOR, s : Float32) #

[View source]
def multiply(c : COLOR, s : Float32) #

[View source]
def multiply(c1 : COLOR, c2 : COLOR) #

[View source]
def subtract(c1 : COLOR, c2 : COLOR) #

[View source]