Skip to content

Instantly share code, notes, and snippets.

Avatar

Poppy Works PoppyWorks

View GitHub Profile
@PoppyWorks
PoppyWorks / tileset.scm
Last active Jul 18, 2018 — forked from MobiDevelop/tileset.scm
GIMP script that adds a bleed and margin to an existing tilesheet/spritesheet. Very useful!
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))