forked from subsurface/subsurface
-
Notifications
You must be signed in to change notification settings - Fork 1
/
color.h
60 lines (52 loc) · 2.81 KB
/
color.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef COLORS_H
#define COLORS_H
/* The colors are named by picking the closest match
from http://chir.ag/projects/name-that-color */
#include <QColor>
// Greens
#define CAMARONE1 QColor::fromRgbF( 0.0, 0.4, 0.0, 1 )
#define FUNGREEN1 QColor::fromRgbF( 0.0, 0.4, 0.2, 1 )
#define FUNGREEN1_HIGH_TRANS QColor::fromRgbF( 0.0, 0.4, 0.2, 0.25 )
#define KILLARNEY1 QColor::fromRgbF( 0.2, 0.4, 0.2, 1 )
#define APPLE1 QColor::fromRgbF( 0.2, 0.6, 0.2, 1 )
#define APPLE1_MED_TRANS QColor::fromRgbF( 0.2, 0.6, 0.2, 0.5 )
#define APPLE1_HIGH_TRANS QColor::fromRgbF( 0.2, 0.6, 0.2, 0.25 )
#define LIMENADE1 QColor::fromRgbF( 0.4, 0.8, 0.0, 1 )
#define ATLANTIS1 QColor::fromRgbF( 0.4, 0.8, 0.2, 1 )
#define ATLANTIS2 QColor::fromRgbF( 0.6, 0.8, 0.2, 1 )
#define RIOGRANDE1 QColor::fromRgbF( 0.8, 0.8, 0.0, 1 )
#define EARLSGREEN1 QColor::fromRgbF( 0.8, 0.8, 0.2, 1 )
#define FORESTGREEN1 QColor::fromRgbF( 0.1, 0.5, 0.1, 1 )
// Reds
#define PERSIANRED1 QColor::fromRgbF( 0.8, 0.2, 0.2, 1 )
#define TUSCANY1 QColor::fromRgbF( 0.8, 0.4, 0.2, 1 )
#define PIRATEGOLD1 QColor::fromRgbF( 0.8, 0.5, 0.0, 1 )
#define HOKEYPOKEY1 QColor::fromRgbF( 0.8, 0.6, 0.2, 1 )
#define CINNABAR1 QColor::fromRgbF( 0.9, 0.3, 0.2, 1 )
#define REDORANGE1 QColor::fromRgbF( 1.0, 0.2, 0.2, 1 )
#define REDORANGE1_HIGH_TRANS QColor::fromRgbF( 1.0, 0.2, 0.2, 0.25 )
#define REDORANGE1_MED_TRANS QColor::fromRgbF( 1.0, 0.2, 0.2, 0.5 )
#define RED1_MED_TRANS QColor::fromRgbF( 1.0, 0.0, 0.0, 0.5 )
#define RED1 QColor::fromRgbF( 1.0, 0.0, 0.0, 1 )
// Monochromes
#define BLACK1 QColor::fromRgbF( 0.0, 0.0, 0.0, 1 )
#define BLACK1_LOW_TRANS QColor::fromRgbF( 0.0, 0.0, 0.0, 0.75 )
#define BLACK1_HIGH_TRANS QColor::fromRgbF( 0.0, 0.0, 0.0, 0.25 )
#define TUNDORA1_MED_TRANS QColor::fromRgbF( 0.3, 0.3, 0.3, 0.5 )
#define MERCURY1_MED_TRANS QColor::fromRgbF( 0.9, 0.9, 0.9, 0.5 )
#define CONCRETE1_LOWER_TRANS QColor::fromRgbF( 0.95, 0.95, 0.95, 0.9 )
#define WHITE1_MED_TRANS QColor::fromRgbF( 1.0, 1.0, 1.0, 0.5 )
#define WHITE1 QColor::fromRgbF( 1.0, 1.0, 1.0, 1 )
// Blues
#define GOVERNORBAY2 QColor::fromRgbF( 0.2, 0.2, 0.7, 1 )
#define GOVERNORBAY1_MED_TRANS QColor::fromRgbF( 0.2, 0.2, 0.8, 0.5 )
#define ROYALBLUE2 QColor::fromRgbF( 0.2, 0.2, 0.9, 1 )
#define ROYALBLUE2_LOW_TRANS QColor::fromRgbF( 0.2, 0.2, 0.9, 0.75 )
// Yellows / BROWNS
#define SPRINGWOOD1 QColor::fromRgbF( 0.95, 0.95, 0.9, 1 )
#define BROOM1_LOWER_TRANS QColor::fromRgbF( 1.0, 1.0, 0.1, 0.9 )
#define PEANUT QColor::fromRgbF( 0.5, 0.2, 0.1, 1.0 )
#define PEANUT_MED_TRANS QColor::fromRgbF( 0.5, 0.2, 0.1, 0.5 )
// Magentas
#define MEDIUMREDVIOLET1_HIGHER_TRANS QColor::fromRgbF( 0.7, 0.2, 0.7, 0.1 )
#endif