NAME
do_bricks - Generate brick texture
SYNOPSIS
<Image>/File/Create/Patterns/_Bricks...
DESCRIPTION
Generate a brick texture for using in 3d games.
PARAMETERS
[PF_PATTERN, "pattern", "Brick pattern", "Leather"],
[PF_TOGGLE, "borderpatuse", "Use border pattern", 0],
[PF_PATTERN, "borderpattern", "Border pattern", "Leather"],
[PF_COLOR, "color", "Border color", [0.80,0.80,0.80]],
[PF_SPINNER, "borderwidth", "Border width", 1, [0,1000,1]],
[PF_INT32, "brickx", "Bricks in X", 8],
[PF_INT32, "bricky", "Bricks in Y", 16],
[PF_INT32, "imagew", "Width of image", 256],
[PF_INT32, "imageh", "Height of image", 256],
[PF_SPINNER, "skew", "Random darken/lighten factor (0..20)", 5, [0,20,1]],
IMAGE TYPES
AUTHOR
Tels
HISTORY
[10/27/1999] v0.0.1 First version.
params: brick width/height, brick pattern, random light skew, border color
12/5/03: <sjburges@gimp.org> updated to use gimp_image_get_floating_sel, rather than gimp_image_floating_sel, gimp_undo_push/gimp_image_undo_push
25/2/04: <sjburges@gimp.org> changed color specifiers. Reordered so that pasting happens after layer mask is attached to image. Removed harmful gimp_layer_delete() calls. s/gimp_channel_ops_offset/gimp_drawable_offset/.
The plug-in is certainly incomplete, with unused parameters, artificial limitation on max/min size (which silently moves it to 256?). Doesn't save/restore current gimp pattern/colors before setting them. Otherwise, it seems to work OK now :)
29/4/14: Ed J. Removed unused params, now does save context, make number params be INT types.
DATE
10/26/1999
LICENSE
(c) Copyright by Tels www.bloodgate.com 1999.
Licenced under the GNU Public License.