Skip to content

Instantly share code, notes, and snippets.

View PoppyWorks's full-sized avatar

Poppy Works PoppyWorks

View GitHub Profile
@MobiDevelop
MobiDevelop / tileset.scm
Last active March 21, 2021 09:48
GIMP script to add margin adn spacing to a tilsheet
(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))