mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
6c52e8a2e5
Plot a red-shaded area on top of the depth profile to indicate the deco ceiling (i.e., the area into which it isn't save to ascend at this point of the dive. So far this is of very limited use as libdivecomputer doesn't give us the necessary information to plot this. I have sent patches for the OSTC to Jef, hoping that he will include them in an update. I don't know how many other dive computers will make this data available - I still need to add this to our native Uemis support. This commit also fixes two cut and paste errors in the previous commit 6540be9bd924 "Process ceiling events and store ceiling data in plot_info". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
54 lines
2 KiB
C
54 lines
2 KiB
C
#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 APPLE1_MED_TRANS { 0.2, 0.6, 0.2, 0.5 }
|
|
#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_MED_TRANS { 1.0, 0.0, 0.0, 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 { 0.2, 0.2, 0.9, 1 }
|
|
#define ROYALBLUE2_LOW_TRANS { 0.2, 0.2, 0.9, 0.75 }
|
|
|
|
// Yellows / BROWNS
|
|
#define SPRINGWOOD1 { 0.95, 0.95, 0.9, 1 }
|
|
#define BROOM1_LOWER_TRANS { 1.0, 1.0, 0.1, 0.9 }
|
|
#define PEANUT { 0.5, 0.2, 0.1, 1.0 }
|
|
#define PEANUT_MED_TRANS { 0.5, 0.2, 0.1, 0.5 }
|
|
// Magentas
|
|
#define MEDIUMREDVIOLET1_HIGHER_TRANS { 0.7, 0.2, 0.7, 0.1 }
|
|
|
|
#endif
|