From fefb5de652f3f07eda7bfb79ebb0134b64e5bd19 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 20 May 2016 23:53:22 +0200 Subject: Implement unit circle example `unit_circle.sh` generates a animated GIF of the circle states between p=1 and p=3. --- src/color.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; +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}; } -- cgit v1.2.3