#include "color.hpp" void write_color(std::ostream& out, const color& pixel_color) { out << static_cast(255.0 * pixel_color.x) << ' ' << static_cast(255.0 * pixel_color.y) << ' ' << static_cast(255.0 * pixel_color.z) << std::endl; }