class

RayTracer::Canvas

Inherits Reference < Object

Constructors

new(width : UInt32, height : UInt32, bg : Color::COLOR = Color::BLACK)
Source

Instance methods

height
Source
pixel_at(x, y)
Source
to_ppm
Source
width
Source
write_pixel(x : Float64, y : Float64, color : Color::COLOR)
Source
write_pixel(x, y, color : Color::COLOR)
Source