added lessons!
This commit is contained in:
23
color.lua
23
color.lua
@@ -25,10 +25,27 @@ COLOR = Enum {
|
||||
"White"
|
||||
}
|
||||
|
||||
EFFECT = Enum {
|
||||
"Normal",
|
||||
"Bold",
|
||||
"Dim",
|
||||
"Italic",
|
||||
"Underline",
|
||||
"BlinkSlow",
|
||||
"BlinkFast",
|
||||
"Invert",
|
||||
"Conceal",
|
||||
"CrossedOut"
|
||||
}
|
||||
|
||||
function makeTextEffect(Effect, Text)
|
||||
return "\027["..tostring(Effect-1).."m"..Text.."\027[0;m"
|
||||
end
|
||||
|
||||
function colorText(Color, Text)
|
||||
return "\027[38;5;"..tostring(Color-1).."m"..Text.."\027[0;m"
|
||||
return "\027[38;5;"..tostring(Color-1).."m"..Text.."\027[0;m"
|
||||
end
|
||||
|
||||
function colorTextBackground(Color, Text)
|
||||
return "\027[48;5;"..tostring(Color-1).."m"..Text.."\027[0;m"
|
||||
end
|
||||
return "\027[48;5;"..tostring(Color-1).."m"..Text.."\027[0;m"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user