advanced-spritesheet-export/abase-listeners.lua

13 lines
254 B
Lua
Raw Permalink Normal View History

2024-07-31 02:58:23 +00:00
local c = require "abase-color"
-- recolors all layers in the current sprite
local function RecolorLayers()
for i, layer in ipairs(app.sprite.layers) do
2024-07-31 02:58:23 +00:00
c.SetColor(layer)
end
end
local export = {
RecolorLayers = RecolorLayers,
}
return export