#ifndef COLOR_H #define COLOR_H #include "vec3.hpp" #include #include /* Writes color components as a space-delimited string of numbers in the range [0,255] */ void write_color(FILE *fp, color c) { fprintf(fp, "%d %d %d\n", (uint8_t) (255 * c.x), (uint8_t) (255 * c.y), (uint8_t) (255 * c.z)); } #endif