Function write_color

Source
pub fn write_color(pixel_color: Color, samples_per_pixel: i32) -> String
Expand description

Averages pixel_color over samples_per_pixel samples and converts to an “R G B” string.