mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-31 11:19:11 +00:00
Update ccbn.lua
This commit is contained in:
parent
87959baf94
commit
9f30479973
9
ccbn.lua
9
ccbn.lua
@ -19,6 +19,15 @@ local stage = {
|
||||
}
|
||||
|
||||
-- ripped from NFTE
|
||||
colorSwap = function(image, text, back)
|
||||
local output = {{},{},{}}
|
||||
for y = 1, #image[1] do
|
||||
output[1][y] = image[1][y]
|
||||
output[2][y] = image[2][y]:gsub(".", text)
|
||||
output[3][y] = image[3][y]:gsub(".", back or text)
|
||||
end
|
||||
return output
|
||||
end
|
||||
local makeRectangle = function(width, height, char, text, back)
|
||||
local output = {{},{},{}}
|
||||
for y = 1, height do
|
||||
|
Loading…
Reference in New Issue
Block a user