class RayTracerChallenge::Adapters::SubPixelStream

Defined in:

ray_tracer_challenge/adapters/sub_pixel_stream.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(canvas : Canvas) #

[View source]

Instance Method Detail

def more? #

[View source]
def receive #

[View source]
def sub_pixel_streamer #

continuation fiber that feeds @sub_pixel_channel

Note: since PPM files start at the top left, the sub_pixel_streamer uses Canvas#flipped_each_with_index so that the canvas is streamed top to bottom.


[View source]