Update ccbn.lua

This commit is contained in:
LDDestroier 2019-03-09 17:24:33 -05:00 committed by GitHub
parent 9f30479973
commit b893214b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,15 @@ local stage = {
}
-- 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 = {{},{},{}}
for y = 1, #image[1] do
output[1][y] = image[1][y]