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
--[[ | |
example use | |
]] | |
local recolour = require("recolour") | |
--we want to recolour this asset image | |
local to_recolour = love.image.newImageData("path/to/image.png") | |
--using this palette image | |
local palette = love.image.newImageData("path/to/palette.png") |
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
---------------------------------------------------------------------- | |
-- Generate Normal Map | |
-- | |
-- It works only for RGB color mode. | |
---------------------------------------------------------------------- | |
if app.apiVersion < 1 then | |
return app.alert("This script requires Aseprite v1.2.10-beta3") | |
end | |
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
-- these have to be sorted by longest first | |
local keywords = { | |
"function", | |
"then", | |
"end", | |
"if", | |
} | |
local symbols = { |
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
--dialogue type | |
local dialogue = {} | |
dialogue._mt = { | |
__index = dialogue, | |
} | |
function dialogue:new(f) | |
return setmetatable({ |