2024-07-31 00:01:45 +00:00
|
|
|
local colorUtils = require "abase-color"
|
2024-07-30 03:22:57 +00:00
|
|
|
|
|
|
|
-- recolors all layers in the current sprite
|
|
|
|
local function RecolorLayers()
|
|
|
|
for i, layer in ipairs(app.sprite.layers) do
|
2024-07-31 00:01:45 +00:00
|
|
|
colorUtils.SetColor(layer)
|
2024-07-30 03:22:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
local export = {
|
|
|
|
RecolorLayers = RecolorLayers,
|
|
|
|
}
|
|
|
|
return export
|