Skip to content

Instantly share code, notes, and snippets.

View dyxang's full-sized avatar
💭
I may be slow to respond.

Dyxang dyxang

💭
I may be slow to respond.
View GitHub Profile
@japhib
japhib / Generate2DLight.lua
Created May 2, 2022 16:20
Aseprite script to generate a 2d light sprite for Godot
-- Generate a 2d light for Godot
local rgba = app.pixelColor.rgba
local cel = app.activeCel
if not cel then
return app.alert("There is no active image")
end
local bounds = cel.bounds
@ruccho
ruccho / Generate Normal Map for all frames.lua
Last active April 25, 2025 17:08
Lua script for Aseprite that generates normal map automatically from all frames of selected layers.
----------------------------------------------------------------------
-- 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