Refactor color functions into their own library.
This commit is contained in:
parent
d3874d5e83
commit
9eb6d2a0a6
4 changed files with 91 additions and 88 deletions
|
@ -1,13 +1,12 @@
|
|||
local layerUtils = require "abase-layer"
|
||||
local colorUtils = require "abase-color"
|
||||
|
||||
-- recolors all layers in the current sprite
|
||||
local function RecolorLayers()
|
||||
for i, layer in ipairs(app.sprite.layers) do
|
||||
layerUtils.SetColor(layer)
|
||||
colorUtils.SetColor(layer)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local export = {
|
||||
RecolorLayers = RecolorLayers,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue