class RayTracerChallenge::Canvas
- RayTracerChallenge::Canvas
- Reference
- Object
Defined in:
ray_tracer_challenge/canvas.crConstructors
Instance Method Summary
- #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
- #height : Int32
- #width : Int32
- #write(x, y, color)
Constructor Detail
Instance Method Detail
def 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.