This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Description: Duplicate a sprite and replace black with 3 different colors | |
function createSheet(data, numberOfVariants) | |
local sourceSprite = app.activeSprite | |
local sourceImage = app.activeCel.image | |
Sprite(sourceSprite.width * numberOfVariants, sourceSprite.height) | |
local outputImage = app.activeCel.image | |
for i = 0, numberOfVariants do |