-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.lua
90 lines (71 loc) · 1.51 KB
/
colors.lua
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
C = {
RESET = "\27[0m",
BLACK = "\27[30m",
RED = "\27[31m",
GREEN = "\27[32m",
YELLOW = "\27[33m",
BLUE = "\27[34m",
PURPLE = "\27[35m",
CYAN = "\27[36m",
WHITE = "\27[37m",
CLEAR = "\27[H\27[2J",
HBLACK = "\27[40m",
HRED = "\27[41m",
HGREEN = "\27[42m",
HYELLOW = "\27[43m",
HBLUE = "\27[44m",
HPURPLE = "\27[45m",
HCYAN = "\27[46m",
HWHITE = "\27[47m",
}
-- Text Colors
C.white = function(string)
return C.WHITE .. string .. C.RESET
end
C.cyan = function(string)
return C.CYAN .. string .. C.RESET
end
C.purple = function(string)
return C.PURPLE .. string .. C.RESET
end
C.red = function(string)
return C.RED .. string .. C.RESET
end
C.black = function(string)
return C.BLACK .. string .. C.RESET
end
C.green = function(string)
return C.GREEN .. string .. C.RESET
end
C.yellow = function(string)
return C.YELLOW .. string .. C.RESET
end
C.blue = function(string)
return C.BLUE .. string .. C.RESET
end
-- Background Colors
C.bg_red = function(string)
return C.HRED .. string .. C.RESET
end
C.bg_white = function(string)
return C.HWHITE .. string .. C.RESET
end
C.bg_cyan = function(string)
return C.HCYAN .. string .. C.RESET
end
C.bg_purple = function(string)
return C.HPURPLE .. string .. C.RESET
end
C.bg_black = function(string)
return C.HBLACK .. string .. C.RESET
end
C.bg_green = function(string)
return C.HGREEN .. string .. C.RESET
end
C.bg_yellow = function(string)
return C.HYELLOW .. string .. C.RESET
end
C.bg_blue = function(string)
return C.HBLUE .. string .. C.RESET
end
return C