Skip to content

Instantly share code, notes, and snippets.

View PoppyWorks's full-sized avatar

Poppy Works PoppyWorks

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