aboutsummaryrefslogtreecommitdiffstats
path: root/src/color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.cpp')
-rw-r--r--src/color.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/color.cpp b/src/color.cpp
new file mode 100644
index 0000000..2777d39
--- /dev/null
+++ b/src/color.cpp
@@ -0,0 +1,7 @@
+#include "color.hpp"
+
+void write_color(std::ostream& out, color pixel_color) {
+ out << pixel_color.x << ' '
+ << pixel_color.y << ' '
+ << pixel_color.z << ' ';
+}