aboutsummaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.cc b/test.cc
new file mode 100644
index 0000000..36f637d
--- /dev/null
+++ b/test.cc
@@ -0,0 +1,12 @@
+#include <imgen.h>
+
+int main(int, char*[]) {
+ imgen::write_ppm(
+ "test.ppm",
+ 500,
+ 500,
+ [](std::size_t x, std::size_t y) -> imgen::color {
+ return imgen::color(255, x % 255, y % 255);
+ }
+ );
+}