Skip to content

Instantly share code, notes, and snippets.

View flamendless's full-sized avatar
🎯
Focusing on Game Development and University

flamendless flamendless

🎯
Focusing on Game Development and University
View GitHub Profile
@flamendless
flamendless / main.lua
Created November 13, 2018 00:32 — forked from 1bardesign/main.lua
recolour.lua
--[[
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")
-- these have to be sorted by longest first
local keywords = {
"function",
"then",
"end",
"if",
}
local symbols = {