aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-05-20 23:53:22 +0200
committerAdrian Kummerlaender2016-05-20 23:53:22 +0200
commitfefb5de652f3f07eda7bfb79ebb0134b64e5bd19 (patch)
treea5271847547d68b4265047d3ff9e9c0e367d6217 /src
parentd87a9b0960ddd4397325fe7240b484ec9f79e7af (diff)
downloadvoronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar.gz
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar.bz2
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar.lz
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar.xz
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.tar.zst
voronoi-fefb5de652f3f07eda7bfb79ebb0134b64e5bd19.zip
Implement unit circle example
`unit_circle.sh` generates a animated GIF of the circle states between p=1 and p=3.
Diffstat (limited to 'src')
-rw-r--r--src/color.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/color.h b/src/color.h
index 514c739..dcad5cf 100644
--- a/src/color.h
+++ b/src/color.h
@@ -7,6 +7,8 @@ namespace imgen {
using color = std::tuple<std::uint8_t, std::uint8_t, std::uint8_t>;
+constexpr color black() { return color{ 0, 0, 0}; }
+constexpr color white() { return color{255, 255, 255}; }
constexpr color red() { return color{255, 0, 0}; }
constexpr color lime() { return color{ 0, 255, 0}; }
constexpr color blue() { return color{ 0, 0, 255}; }