#ifndef COLOR_H #define COLOR_H #include #include "vec3.h" void write_color(std::ostream &out, Color pixel_color) { out << static_cast(255.999 * pixel_color.x()) << " " << static_cast(255.999 * pixel_color.y()) << " " << static_cast(255.999 * pixel_color.z()) << "\n"; } #endif // COLOR_H