diff options
author | Adrian Kummerlaender | 2016-05-14 23:06:20 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-05-14 23:06:20 +0200 |
commit | 64880ba1019f8c81470d697143b7bf48143b2fc8 (patch) | |
tree | f758030b5d151a47b50df233d39215ea5abaec63 /src/color.cc | |
parent | 8e1d7c4e484ef43dddc5074055727694ceb0e37b (diff) | |
download | voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar.gz voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar.bz2 voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar.lz voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar.xz voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.tar.zst voronoi-64880ba1019f8c81470d697143b7bf48143b2fc8.zip |
Separate into multiple compilation units, add color functions
* fix cartesian coordinate determination
Diffstat (limited to 'src/color.cc')
-rw-r--r-- | src/color.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/color.cc b/src/color.cc new file mode 100644 index 0000000..9af409a --- /dev/null +++ b/src/color.cc @@ -0,0 +1,19 @@ +#include "color.h" + +namespace imgen { + +color red() { return color{255, 0, 0}; } +color lime() { return color{ 0, 255, 0}; } +color blue() { return color{ 0, 0, 255}; } +color yellow() { return color{255, 255, 0}; } +color cyan() { return color{ 0, 255, 255}; } +color magenta() { return color{255, 0, 255}; } +color silver() { return color{192, 192, 192}; } +color maroon() { return color{128, 0, 0}; } +color olive() { return color{128, 128, 0}; } +color green() { return color{ 0, 128, 0}; } +color purple() { return color{128, 0, 128}; } +color teal() { return color{ 0, 128, 128}; } +color navy() { return color{ 0, 0, 128}; } + +} |