aboutsummaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-03-09 02:21:09 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-03-09 02:21:09 +0800
commit2a65ece16cd237d56c9dac8d9d3d680e9d34b774 (patch)
tree897cbb982ba4e44ee6c40d90223fa1732adac036 /color.h
parent0671c86d0f0dccd6e94766834c41807b7d6b5388 (diff)
downloadray-tracing-2a65ece16cd237d56c9dac8d9d3d680e9d34b774.tar.gz
ray-tracing-2a65ece16cd237d56c9dac8d9d3d680e9d34b774.tar.xz
Create class vec3
Diffstat (limited to 'color.h')
-rw-r--r--color.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/color.h b/color.h
new file mode 100644
index 0000000..23359aa
--- /dev/null
+++ b/color.h
@@ -0,0 +1,12 @@
+#ifndef COLOR_H
+#define COLOR_H
+
+#include "vec3.h"
+
+#include <iostream>
+
+using color = vec3;
+
+void write_color(std::ostream &out, const color &pixel_color);
+
+#endif \ No newline at end of file