RayTracerChallenge::Canvas
Inherits Reference < Object
Constructors
new(width : Int32, height : Int32, color = Color.new(0, 0, 0))
Instance methods
at(x, y)
each
each_index
each_with_index
flipped_each_index
flipped_each_with_index
yields |x, y, value| however, iterates the y from max down to 0
similar to each_with_index, however the y axis order is reversed.
height
width
write(x, y, color)