forked from mewbak/framebuffer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
color.go
143 lines (140 loc) · 6.64 KB
/
color.go
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// This file is subject to a 1-clause BSD license.
// Its contents can be found in the enclosed LICENSE file.
package framebuffer
// Some named colors
var (
Black = RGBColor{0x00, 0x00, 0x00}
DarkGrey = RGBColor{0x55, 0x55, 0x55}
LightGrey = RGBColor{0xaa, 0xaa, 0xaa}
White = RGBColor{0xff, 0xff, 0xff}
Red = RGBColor{0xff, 0x00, 0x00}
Green = RGBColor{0x00, 0xff, 0x00}
Blue = RGBColor{0x00, 0x00, 0xff}
)
// 124 named unix colors.
var (
AliceBlue = RGBColor{0xF0, 0xF8, 0xFF}
AntiqueWhite = RGBColor{0xFA, 0xEB, 0xD7}
Aquamarine = RGBColor{0x7F, 0xFF, 0xD4}
Azure = RGBColor{0xF0, 0xFF, 0xFF}
Beige = RGBColor{0xF5, 0xF5, 0xDC}
Bisque = RGBColor{0xFF, 0xE4, 0xC4}
BlanchedAlmond = RGBColor{0xFF, 0xEB, 0xCD}
BlueViolet = RGBColor{0x8A, 0x2B, 0xE2}
Brown = RGBColor{0xA5, 0x2A, 0x2A}
BurlyWood = RGBColor{0xDE, 0xB8, 0x87}
CadetBlue = RGBColor{0x5F, 0x9E, 0xA0}
Chartreuse = RGBColor{0x7F, 0xFF, 0x00}
Chocolate = RGBColor{0xD2, 0x69, 0x1E}
Coral = RGBColor{0xFF, 0x7F, 0x50}
CornflowerBlue = RGBColor{0x64, 0x95, 0xED}
Cornsilk = RGBColor{0xFF, 0xF8, 0xDC}
Crimson = RGBColor{0xDC, 0x14, 0x3C}
Cyan = RGBColor{0x00, 0xFF, 0xFF}
DarkBlue = RGBColor{0x00, 0x00, 0x8B}
DarkCyan = RGBColor{0x00, 0x8B, 0x8B}
DarkGoldenrod = RGBColor{0xB8, 0x86, 0x0B}
DarkGray = RGBColor{0xA9, 0xA9, 0xA9}
DarkGreen = RGBColor{0x00, 0x64, 0x00}
DarkKhaki = RGBColor{0xBD, 0xB7, 0x6B}
DarkMagenta = RGBColor{0x8B, 0x00, 0x8B}
DarkOliveGreen = RGBColor{0x55, 0x6B, 0x2F}
DarkOrange = RGBColor{0xFF, 0x8C, 0x00}
DarkOrchid = RGBColor{0x99, 0x32, 0xCC}
DarkRed = RGBColor{0x8B, 0x00, 0x00}
DarkSalmon = RGBColor{0xE9, 0x96, 0x7A}
DarkSeaGreen = RGBColor{0x8F, 0xBC, 0x8F}
DarkSlateBlue = RGBColor{0x48, 0x3D, 0x8B}
DarkSlateGray = RGBColor{0x2F, 0x4F, 0x4F}
DarkTurquoise = RGBColor{0x00, 0xCE, 0xD1}
DarkViolet = RGBColor{0x94, 0x00, 0xD3}
DeepPink = RGBColor{0xFF, 0x14, 0x93}
DeepSkyBlue = RGBColor{0x00, 0xBF, 0xFF}
DimGray = RGBColor{0x69, 0x69, 0x69}
DodgerBlue = RGBColor{0x1E, 0x90, 0xFF}
FireBrick = RGBColor{0xB2, 0x22, 0x22}
FloralWhite = RGBColor{0xFF, 0xFA, 0xF0}
ForestGreen = RGBColor{0x22, 0x8B, 0x22}
Gainsboro = RGBColor{0xDC, 0xDC, 0xDC}
GhostWhite = RGBColor{0xF8, 0xF8, 0xFF}
Gold = RGBColor{0xFF, 0xD7, 0x00}
Goldenrod = RGBColor{0xDA, 0xA5, 0x20}
GreenYellow = RGBColor{0xAD, 0xFF, 0x2F}
Honeydew = RGBColor{0xF0, 0xFF, 0xF0}
HotPink = RGBColor{0xFF, 0x69, 0xB4}
IndianRed = RGBColor{0xCD, 0x5C, 0x5C}
Indigo = RGBColor{0x4B, 0x00, 0x82}
Ivory = RGBColor{0xFF, 0xFF, 0xF0}
Khaki = RGBColor{0xF0, 0xE6, 0x8C}
Lavender = RGBColor{0xE6, 0xE6, 0xFA}
LavenderBlush = RGBColor{0xFF, 0xF0, 0xF5}
LawnGreen = RGBColor{0x7C, 0xFC, 0x00}
LemonChiffon = RGBColor{0xFF, 0xFA, 0xCD}
LightBlue = RGBColor{0xAD, 0xD8, 0xE6}
LightCoral = RGBColor{0xF0, 0x80, 0x80}
LightCyan = RGBColor{0xE0, 0xFF, 0xFF}
LightGoldenrodYellow = RGBColor{0xFA, 0xFA, 0xD2}
LightGreen = RGBColor{0x90, 0xEE, 0x90}
LightGray = RGBColor{0xD3, 0xD3, 0xD3}
LightPink = RGBColor{0xFF, 0xB6, 0xC1}
LightSalmon = RGBColor{0xFF, 0xA0, 0x7A}
LightSeaGreen = RGBColor{0x20, 0xB2, 0xAA}
LightSkyBlue = RGBColor{0x87, 0xCE, 0xFA}
LightSlateGray = RGBColor{0x77, 0x88, 0x99}
LightSteelBlue = RGBColor{0xB0, 0xC4, 0xDE}
LightYellow = RGBColor{0xFF, 0xFF, 0xE0}
LimeGreen = RGBColor{0x32, 0xCD, 0x32}
Linen = RGBColor{0xFA, 0xF0, 0xE6}
Magenta = RGBColor{0xFF, 0x00, 0xFF}
MediumAquamarine = RGBColor{0x66, 0xCD, 0xAA}
MediumBlue = RGBColor{0x00, 0x00, 0xCD}
MediumOrchid = RGBColor{0xBA, 0x55, 0xD3}
MediumPurple = RGBColor{0x93, 0x70, 0xD8}
MediumSeaGreen = RGBColor{0x3C, 0xB3, 0x71}
MediumSlateBlue = RGBColor{0x7B, 0x68, 0xEE}
MediumSpringGreen = RGBColor{0x00, 0xFA, 0x9A}
MediumTurquoise = RGBColor{0x48, 0xD1, 0xCC}
MediumVioletRed = RGBColor{0xC7, 0x15, 0x85}
MidnightBlue = RGBColor{0x19, 0x19, 0x70}
MintCream = RGBColor{0xF5, 0xFF, 0xFA}
MistyRose = RGBColor{0xFF, 0xE4, 0xE1}
Moccasin = RGBColor{0xFF, 0xE4, 0xB5}
NavajoWhite = RGBColor{0xFF, 0xDE, 0xAD}
OldLace = RGBColor{0xFD, 0xF5, 0xE6}
OliveDrab = RGBColor{0x68, 0x8E, 0x23}
Orange = RGBColor{0xFF, 0xA5, 0x00}
OrangeRed = RGBColor{0xFF, 0x45, 0x00}
Orchid = RGBColor{0xDA, 0x70, 0xD6}
PaleGoldenrod = RGBColor{0xEE, 0xE8, 0xAA}
PaleGreen = RGBColor{0x98, 0xFB, 0x98}
PaleTurquoise = RGBColor{0xAF, 0xEE, 0xEE}
PaleVioletRed = RGBColor{0xD8, 0x70, 0x93}
PapayaWhip = RGBColor{0xFF, 0xEF, 0xD5}
PeachPuff = RGBColor{0xFF, 0xDA, 0xB9}
Peru = RGBColor{0xCD, 0x85, 0x3F}
Pink = RGBColor{0xFF, 0xC0, 0xCB}
Plum = RGBColor{0xDD, 0xA0, 0xDD}
PowderBlue = RGBColor{0xB0, 0xE0, 0xE6}
RosyBrown = RGBColor{0xBC, 0x8F, 0x8F}
RoyalBlue = RGBColor{0x41, 0x69, 0xE1}
SaddleBrown = RGBColor{0x8B, 0x45, 0x13}
Salmon = RGBColor{0xFA, 0x80, 0x72}
SandyBrown = RGBColor{0xF4, 0xA4, 0x60}
SeaGreen = RGBColor{0x2E, 0x8B, 0x57}
Seashell = RGBColor{0xFF, 0xF5, 0xEE}
Sienna = RGBColor{0xA0, 0x52, 0x2D}
SkyBlue = RGBColor{0x87, 0xCE, 0xEB}
SlateBlue = RGBColor{0x6A, 0x5A, 0xCD}
SlateGray = RGBColor{0x70, 0x80, 0x90}
Snow = RGBColor{0xFF, 0xFA, 0xFA}
SpringGreen = RGBColor{0x00, 0xFF, 0x7F}
SteelBlue = RGBColor{0x46, 0x82, 0xB4}
Tan = RGBColor{0xD2, 0xB4, 0x8C}
Thistle = RGBColor{0xD8, 0xBF, 0xD8}
Tomato = RGBColor{0xFF, 0x63, 0x47}
Turquoise = RGBColor{0x40, 0xE0, 0xD0}
Violet = RGBColor{0xEE, 0x82, 0xEE}
Wheat = RGBColor{0xF5, 0xDE, 0xB3}
WhiteSmoke = RGBColor{0xF5, 0xF5, 0xF5}
YellowGreen = RGBColor{0x9A, 0xCD, 0x32}
)