class RayTracer::Canvas

Defined in:

ray_tracer/canvas.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : UInt32, height : UInt32, bg : Color::COLOR = Color::BLACK) #

[View source]

Instance Method Detail

def height : UInt32 #

[View source]
def pixel_at(x, y) #

[View source]
def to_ppm #

[View source]
def width : UInt32 #

[View source]
def write_pixel(x : Float64, y : Float64, color : Color::COLOR) #

[View source]
def write_pixel(x, y, color : Color::COLOR) #

[View source]