See also: Main Index; Alphabetic; Misc; By Author; By Module; By Menu External Links: The Gimp; Gimp User Manual
The Gimp pattern functions
gimp_patterns_close_popup
Input:
| STRING | pattern_callback | The name of the callback registered for this popup |
Returns: nothing
This procedure closes an opened pattern selection dialog.
Andy Thomas; 1998
gimp_patterns_get_pattern
Input: none
Returns:
| STRING | name | The pattern name |
| INT32 | width | The pattern width |
| INT32 | height | The pattern height |
This procedure retrieves information about the currently active pattern. This includes the pattern name, and the pattern extents (width and height). All clone and bucket-fill operations with patterns will use this pattern to control the application of paint to the image.
Spencer Kimball & Peter Mattis; 1995-1996
gimp_patterns_get_pattern_data
Input:
| STRING | name | the pattern name ("" means current active pattern) |
Returns:
| STRING | name | The pattern name |
| INT32 | width | The pattern width |
| INT32 | height | The pattern height |
| INT32 | mask_bpp | Pattern bytes per pixel |
| INT32 | length | Length of pattern mask data |
| INT8ARRAY | mask_data | The pattern mask data |
This procedure retrieves information about the currently active pattern. This includes the pattern name, and the pattern extents (width and height). It also returns the pattern data.
Andy Thomas; 1998
gimp_patterns_list
Input: none
Returns:
| INT32 | num_patterns | The number of patterns in the pattern list |
| STRINGARRAY | pattern_list | The list of pattern names |
This procedure returns a complete listing of available GIMP patterns. Each name returned can be used as input to the 'gimp_patterns_set_pattern'.
Spencer Kimball & Peter Mattis; 1995-1996
gimp_patterns_popup
Input:
| STRING | pattern_callback | The callback PDB proc to call when pattern selection is made |
| STRING | popup_title | Title to give the pattern popup window |
| STRING | initial_pattern | The name of the pattern to set as the first selected |
Returns: nothing
This procedure popups the pattern selection dialog.
Andy Thomas; 1998
gimp_patterns_set_pattern
Input:
| STRING | name | The pattern name |
Returns: nothing
This procedure allows the active pattern mask to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed patterns. If there is no matching pattern found, this procedure will return an error. Otherwise, the specified pattern becomes active and will be used in all subsequent paint operations.
Spencer Kimball & Peter Mattis; 1995-1996
gimp_patterns_set_popup
Input:
| STRING | pattern_callback | The name of the callback registered for this popup |
| STRING | pattern_name | The name of the pattern to set as selected |
Returns: nothing
Sets the current pattern selection in a popup.
Andy Thomas; 1998
python_fu_pattern
Input:
| INT32 | run_mode | Interactive, Non-Interactive |
| IMAGE | image | The image to work on |
| DRAWABLE | drawable | The drawable to work on |
| COLOR | color | The colour of the form |
| INT32 | edges | Edges of form (>3!) |
| INT32 | radius | Radius as distance of corner points from center |
| FLOAT | angle | Angle to rotate form |
| INT32 | x_delta | X delta: distance of centers |
| INT32 | y_delta | Y delta: distance of centers |
| INT32 | x_mirror | mirror every 2nd line |
| INT32 | y_mirror | mirror every 2nd column |
Returns: nothing
Creates a possibly overlapping pattern out of simple geometric forms
Hans Breuer <Hans@Breuer.Org>; 1999
script_fu_beveled_pattern_arrow
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | value | Size |
| INT32 | option | Orientation |
| STRING | pattern | Pattern |
Returns: nothing
Beveled pattern arrow
Federico Mena Quintero; July 1997
script_fu_beveled_pattern_bullet
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | value | Diameter |
| STRING | pattern | Pattern |
| INT32 | toggle | Transparent Background |
Returns: nothing
Beveled pattern bullet
Federico Mena Quintero; July 1997
script_fu_beveled_pattern_button
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | string | Text |
| STRING | value | Font Size (pixels) |
| STRING | font | Font |
| COLOR | color | Text Color |
| STRING | pattern | Pattern |
| INT32 | toggle | Pressed |
Returns: nothing
Beveled pattern button
Federico Mena Quintero; July 1997
script_fu_beveled_pattern_heading
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | string | Text |
| STRING | value | Font Size (pixels) |
| STRING | font | Font |
| STRING | pattern | Pattern |
| INT32 | toggle | Transparent Background |
Returns: nothing
Beveled pattern heading
Federico Mena Quintero; July 1997
script_fu_beveled_pattern_hrule
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | value | Width |
| STRING | value | Height |
| STRING | pattern | Pattern |
Returns: nothing
Beveled pattern hrule
Federico Mena Quintero; July 1997
script_fu_camo_pattern
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | value | Image Size |
| STRING | value | Granularity |
| COLOR | color | Color 1 |
| COLOR | color | Color 2 |
| COLOR | color | Color 3 |
| INT32 | toggle | Smooth |
| INT32 | toggle | Flatten Image |
Returns: nothing
Camouflage pattern
28th April 1998; Chris Gutteridge / ECS @ University of Southampton, England
script_fu_swirly_pattern
Input:
| INT32 | run_mode | Interactive, non-interactive |
| STRING | value | Quarter Size |
| STRING | value | Whirl Angle |
| STRING | value | Number of Times to Whirl |
Returns: nothing
Create a swirly pattern
Federico Mena Quintero; June 1997