aboutsummaryrefslogtreecommitdiff
path: root/src/imgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgen.h')
-rw-r--r--src/imgen.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/imgen.h b/src/imgen.h
new file mode 100644
index 0000000..5ddbaf6
--- /dev/null
+++ b/src/imgen.h
@@ -0,0 +1,16 @@
+#include <string>
+#include <utility>
+#include <functional>
+
+namespace imgen {
+
+using color = std::tuple<std::uint8_t, std::uint8_t, std::uint8_t>;
+
+void write_ppm(
+ const std::string& path,
+ const std::size_t sizeX,
+ const std::size_t sizeY,
+ std::function<color(std::size_t, std::size_t)> generator
+);
+
+}