Skip to content

Instantly share code, notes, and snippets.

Avatar

Poppy Works PoppyWorks

View GitHub Profile
@MobiDevelop
MobiDevelop / tileset.scm
Last active Mar 21, 2021
GIMP script to add margin adn spacing to a tilsheet
View tileset.scm
(define (script-fu-respace-tiles-addMarginSpacing inImage inLayer tileSize)
(let* (
(margin 1)
(spacing 2)
(duplicatePadding TRUE)
(theWidth (car (gimp-drawable-width inLayer)))
(theHeight (car (gimp-drawable-height inLayer)))
(theMarginX (* 2 margin))
(theMarginY (* 2 margin))