summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2011-12-01 12:14:21 +0100
committerGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2011-12-01 12:14:21 +0100
commitb65f8230daca1bca34496f6281ecc0dbe70b0724 (patch)
treedd6580299ac4418ded07b42354f5b8460c86081e /color.h
parentfc6fec59ba45df0ce6288fbf3d3197f1682c73df (diff)
downloadsubsurface-b65f8230daca1bca34496f6281ecc0dbe70b0724.tar.gz
Clean up color definitions
Fix ugly printout, give colors proper names, make grid lines and alert marker easier to see, and specify printer colors independently. Signed-Off-By: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'color.h')
-rw-r--r--color.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/color.h b/color.h
new file mode 100644
index 000000000..3299b7e8d
--- /dev/null
+++ b/color.h
@@ -0,0 +1,50 @@
+#ifndef COLORS_H
+#define COLORS_H
+
+/* The colors are named by picking the closest match
+ from http://chir.ag/projects/name-that-color */
+
+// Greens
+#define CAMARONE1 { 0.0, 0.4, 0.0, 1 }
+#define FUNGREEN1 { 0.0, 0.4, 0.2, 1 }
+#define KILLARNEY1 { 0.2, 0.4, 0.2, 1 }
+#define APPLE1 { 0.2, 0.6, 0.2, 1 }
+#define LIMENADE1 { 0.4, 0.8, 0.0, 1 }
+#define ATLANTIS1 { 0.4, 0.8, 0.2, 1 }
+#define ATLANTIS2 { 0.6, 0.8, 0.2, 1 }
+#define RIOGRANDE1 { 0.8, 0.8, 0.0, 1 }
+#define EARLSGREEN1 { 0.8, 0.8, 0.2, 1 }
+#define FORESTGREEN1 { 0.1, 0.5, 0.1, 1 }
+
+// Reds
+#define PERSIANRED1 { 0.8, 0.2, 0.2, 1 }
+#define TUSCANY1 { 0.8, 0.4, 0.2, 1 }
+#define PIRATEGOLD1 { 0.8, 0.5, 0.0, 1 }
+#define HOKEYPOKEY1 { 0.8, 0.6, 0.2, 1 }
+#define CINNABAR1 { 0.9, 0.3, 0.2, 1 }
+#define REDORANGE1 { 1.0, 0.2, 0.2, 1 }
+#define REDORANGE1_HIGH_TRANS { 1.0, 0.2, 0.2, 0.25 }
+#define REDORANGE1_MED_TRANS { 1.0, 0.2, 0.2, 0.5 }
+#define RED1 { 1.0, 0.0, 0.0, 1 }
+
+// Monochromes
+#define BLACK1_LOW_TRANS { 0.0, 0.0, 0.0, 0.75 }
+#define TUNDORA1_MED_TRANS { 0.3, 0.3, 0.3, 0.5 }
+#define MERCURY1_MED_TRANS { 0.9, 0.9, 0.9, 0.5 }
+#define CONCRETE1_LOWER_TRANS { 0.95, 0.95, 0.95, 0.9 }
+#define WHITE1_MED_TRANS { 1.0, 1.0, 1.0, 0.5 }
+#define WHITE1 { 1.0, 1.0, 1.0, 1 }
+
+// Blues
+#define GOVERNORBAY2 { 0.2, 0.2, 0.7, 1 }
+#define GOVERNORBAY1_MED_TRANS { 0.2, 0.2, 0.8, 0.5 }
+#define ROYALBLUE2_LOW_TRANS { 0.2, 0.2, 0.9, 0.75 }
+
+// Yellows
+#define SPRINGWOOD1 { 0.95, 0.95, 0.9, 1 }
+#define BROOM1_LOWER_TRANS { 1.0, 1.0, 0.1, 0.9 }
+
+// Magentas
+#define MEDIUMREDVIOLET1_HIGHER_TRANS { 0.7, 0.2, 0.7, 0.1 }
+
+#endif