From 64880ba1019f8c81470d697143b7bf48143b2fc8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 May 2016 23:06:20 +0200 Subject: Separate into multiple compilation units, add color functions * fix cartesian coordinate determination --- src/color.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/color.cc (limited to 'src/color.cc') 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}; } + +} -- cgit v1.2.3