-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpalette.go
147 lines (140 loc) · 2.66 KB
/
palette.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
144
145
146
147
package main
type ColorPalette struct {
Black Color
Red Color
Green Color
Yellow Color
Blue Color
Magenta Color
Cyan Color
White Color
BrightBlack Color
BrightRed Color
BrightGreen Color
BrightYellow Color
BrightBlue Color
BrightMagenta Color
BrightCyan Color
BrightWhite Color
Gradation1 Color
Gradation2 Color
Gradation3 Color
Gradation4 Color
Gradation5 Color
Background Color
Foreground Color
WeakRed Color
WeakGreen Color
WeakYellow Color
WeakBlue Color
WeakMagenta Color
WeakCyan Color
StrongRed Color
StrongGreen Color
StrongYellow Color
StrongBlue Color
StrongMagenta Color
StrongCyan Color
}
var Palette = ColorPalette{
Black: Color{
RGBA: FromHex("140c0c"),
Index: 0,
},
Red: Color{
RGBA: FromHex("da5774"),
Index: 1,
},
Green: Color{
RGBA: FromHex("348c4e"),
Index: 2,
},
Yellow: Color{
RGBA: FromHex("e7a82b"),
Index: 3,
},
Blue: Color{
RGBA: FromHex("4884d2"),
Index: 4,
},
Magenta: Color{
RGBA: FromHex("a55aaa"),
Index: 5,
},
Cyan: Color{
RGBA: FromHex("1f90a8"),
Index: 6,
},
White: Color{
RGBA: FromHex("a09999"), // Gradation4
Index: 7,
},
BrightBlack: Color{
RGBA: FromHex("5a4e4e"), // Gradation2
Index: 8,
},
BrightRed: Color{
RGBA: FromHex("f5875b"),
Index: 9,
},
BrightGreen: Color{
RGBA: FromHex("9abe86"),
Index: 10,
},
BrightYellow: Color{
RGBA: FromHex("ffd791"),
Index: 11,
},
BrightBlue: Color{
RGBA: FromHex("89b7e1"),
Index: 12,
},
BrightMagenta: Color{
RGBA: FromHex("eea1d1"),
Index: 13,
},
BrightCyan: Color{
RGBA: FromHex("69b2ac"),
Index: 14,
},
BrightWhite: Color{
RGBA: FromHex("e6e3e3"),
Index: 15,
},
Gradation1: Color{
RGBA: FromHex("372a2a"),
Index: 235,
},
Gradation2: Color{
RGBA: FromHex("5a4e4e"),
Index: 236,
},
Gradation3: Color{
RGBA: FromHex("7d7373"),
Index: 237,
},
Gradation4: Color{
RGBA: FromHex("a09999"),
Index: 238,
},
Gradation5: Color{
RGBA: FromHex("c3bebe"),
Index: 239,
},
}
func init() {
Palette.Background = Palette.Black
Palette.Foreground = Palette.BrightWhite
Palette.WeakRed = Palette.Red
Palette.WeakGreen = Palette.Green
Palette.WeakYellow = Palette.Yellow
Palette.WeakBlue = Palette.Blue
Palette.WeakMagenta = Palette.Magenta
Palette.WeakCyan = Palette.Cyan
Palette.StrongRed = Palette.BrightRed
Palette.StrongGreen = Palette.BrightGreen
Palette.StrongYellow = Palette.BrightYellow
Palette.StrongBlue = Palette.BrightBlue
Palette.StrongMagenta = Palette.BrightMagenta
Palette.StrongCyan = Palette.BrightCyan
}