mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-31 19:29:11 +00:00
Update ccbn.lua
This commit is contained in:
parent
9f30479973
commit
b893214b16
10
ccbn.lua
10
ccbn.lua
@ -19,7 +19,15 @@ local stage = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- ripped from NFTE
|
-- ripped from NFTE
|
||||||
colorSwap = function(image, text, back)
|
local getSize = function(image)
|
||||||
|
assert(checkValid(image), "Invalid image.")
|
||||||
|
local x, y = 0, #image[1]
|
||||||
|
for y = 1, #image[1] do
|
||||||
|
x = math.max(x, #image[1][y])
|
||||||
|
end
|
||||||
|
return x, y
|
||||||
|
end
|
||||||
|
local colorSwap = function(image, text, back)
|
||||||
local output = {{},{},{}}
|
local output = {{},{},{}}
|
||||||
for y = 1, #image[1] do
|
for y = 1, #image[1] do
|
||||||
output[1][y] = image[1][y]
|
output[1][y] = image[1][y]
|
||||||
|
Loading…
Reference in New Issue
Block a user