class

RayTracer::Canvas

Inherits Reference < Object

Constructors

new(width : Numeric, height : Numeric, default_color)
Source

Instance methods

each
Source
height
Source
height=(height : Float64 | Int32)
Source
pixel_at(x, y) : RayTracer::Color
Source
pixels
Source
pixels=(pixels : Array(Array(RayTracer::Color)))
Source
to_ppm
Source
width
Source
width=(width : Float64 | Int32)
Source
write_pixel(x : Int32, y : Int32, color : RayTracer::Color)
Source