mirror of
https://github.com/LDDestroier/CC/
synced 2025-09-02 10:58:00 +00:00
Update ccbn.lua
This commit is contained in:
9
ccbn.lua
9
ccbn.lua
@@ -19,6 +19,15 @@ local stage = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- ripped from NFTE
|
-- 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 makeRectangle = function(width, height, char, text, back)
|
||||||
local output = {{},{},{}}
|
local output = {{},{},{}}
|
||||||
for y = 1, height do
|
for y = 1, height do
|
||||||
|
Reference in New Issue
Block a user