#ifndef COLOR_H #define COLOR_H #include "vec3.h" #include void write_color(std::ostream &out, color pixel_color) { // Write the translated [0,255] value of each color component out << static_cast(255.999 * pixel_color.x()) << " " << static_cast(255.999 * pixel_color.y()) << " " << static_cast(255.999 * pixel_color.z()) << "\n"; } #endif