xach_blocks - Xach's Blocks o' Fun
Turn your picture into something that resembles a certain trademarked building block creation.
[PF_SLIDER, "blocksize", "The size of the blocks", 10, [2, 255, 1]], [PF_SLIDER, "knobfactor", "The size of your knob", 40, [10, 100, 5]],
This is (hopefully) a demonstration of how pathetically easy it is to script a neato effect you've come up with. This lil' effect was created by xach, and translated by sjburges (me). You can consider it released under the GPL or Artistic liscence, whichever makes you happier.
<Xach> sjburges: 1. pixelize the photo 2. in a new white layer, render a grid at the same resolution as the pixelize, then blur it. threshold the grid until you get a roundish blob in the center of each square (you may need to repeat a few times). <Xach> sjburges: meanwhile, back at the pixelized image, bumpmap it with itself and a depth of about 5. do this twice. then bumpmap it with the round blobby layer. <Xach> then create a new, clean grid, and bumpmap the pixelized layer with it (To get a decent blobby grid) <Xach> <Xach> render a grid at 10x10, gaussian blur at 7, then set levels to 196 1.00 234 Revision - 1.1: added a gimp_displays_flush() for 1.0.x users stopped deleting the layers after removal - it was causing bad things to happen with refcounts. I hope gimp is cleaning up this memory on its own... 1.2: Fixed buggy selection handling - oops ;) 1.3: Added undo capability by Marc Lehman <email@example.com> 1.4: Marc Lehman <firstname.lastname@example.org>, changed function name 1.5: Seth Burgess <email@example.com> added my email, put it in a directory more suitable than the lame "Misc" 1.6: Seth Burgess <firstname.lastname@example.org> use Context
Seth Burgess <email@example.com>
Distributed under the same terms as Gimp-Perl.