See also: Main Index; Alphabetic; Misc; By Author; By Module; By Menu    External Links: The Gimp; Gimp User Manual

The Gimp gradient functions

gimp_gradients_close_popup Popdown the Gimp gradient selection.
gimp_gradients_get_active Retrieve the name of the active gradient.
gimp_gradients_get_gradient_data Retrieve information about the specified gradient (including data).
gimp_gradients_get_list Retrieve the list of loaded gradients.
gimp_gradients_popup Invokes the Gimp gradients selection.
gimp_gradients_sample_custom Sample the active gradient in custom positions.
gimp_gradients_sample_uniform Sample the active gradient in uniform parts.
gimp_gradients_set_active Sets the specified gradient as the active gradient.
gimp_gradients_set_popup Sets the current gradient selection in a popup.
script_fu_gradient_bevel_logo <Toolbox>/Xtns/Script-Fu/Logos/Gradient Bevel...
script_fu_gradient_bevel_logo_alpha <Image>/Script-Fu/Alpha to Logo/Gradient Bevel...
script_fu_gradient_example <Toolbox>/Xtns/Script-Fu/Utils/Custom Gradient...

gimp_gradients_close_popup

Input:
STRINGgradients_callbackThe name of the callback registered for this popup
Returns: nothing
This procedure closes an opened gradient selection dialog.
Andy Thomas; 1998

gimp_gradients_get_active

Input: none
Returns:
STRINGnameThe name of the active gradient
This procedure returns the name of the active gradient in the gradient editor.
Federico Mena Quintero; 1997

gimp_gradients_get_gradient_data

Input:
STRINGnameThe gradient name ("" means current active gradient)
INT32sample_sizeSize of the sample to return when the gradient is changed (0 < sample_size <= 10000)
Returns:
STRINGnameThe gradient name
INT32widthThe gradient sample width (r,g,b,a)
FLOATARRAYgrad_dataThe gradient sample data
This procedure retrieves information about the gradient. This includes the gradient name, and the sample data for the gradient.
Andy Thomas; 1998

gimp_gradients_get_list

Input: none
Returns:
INT32num_gradientsThe number of loaded gradients
STRINGARRAYgradient_namesThe list of gradient names
This procedure returns a list of the gradients that are currently loaded in the gradient editor. You can later use the gimp_gradients_set_active function to set the active gradient.
Federico Mena Quintero; 1997

gimp_gradients_popup

Input:
STRINGgradients_callbackThe callback PDB proc to call when gradient selection is made
STRINGpopup_titleTitle to give the gradient popup window
STRINGinitial_gradientThe name of the pattern to set as the first selected
INT32sample_sizeSize of the sample to return when the gradient is changed (0 < sample_size <= 10000)
Returns: nothing
This procedure popups the gradients selection dialog.
Andy Thomas; 1998

gimp_gradients_sample_custom

Input:
INT32num_samplesThe number of samples to take
FLOATARRAYpositionsThe list of positions to sample along the gradient
Returns:
INT32array_lengthLength of the color_samples array (4 * num_samples)
FLOATARRAYcolor_samplesColor samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }
This procedure samples the active gradient from the gradient editor in the specified number of points. The procedure will sample the gradient in the specified positions from the list. The left endpoint of the gradient corresponds to position 0.0, and the right endpoint corresponds to 1.0. The procedure returns a list of floating-point values which correspond to the RGBA values for each sample.
Federico Mena Quintero; 1997

gimp_gradients_sample_uniform

Input:
INT32num_samplesThe number of samples to take
Returns:
INT32array_lengthLength of the color_samples array (4 * num_samples)
FLOATARRAYcolor_samplesColor samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }
This procedure samples the active gradient from the gradient editor in the specified number of uniform parts. It returns a list of floating-point values which correspond to the RGBA values for each sample. The minimum number of samples to take is 2, in which case the returned colors will correspond to the { 0.0, 1.0 } positions in the gradient. For example, if the number of samples is 3, the procedure will return the colors at positions { 0.0, 0.5, 1.0 }.
Federico Mena Quintero; 1997

gimp_gradients_set_active

Input:
STRINGnameThe name of the gradient to set
Returns: nothing
This procedure lets you set the specified gradient as the active or "current" one. The name is simply a string which corresponds to one of the loaded gradients in the gradient editor. If no matching gradient is found, this procedure will return an error. Otherwise, the specified gradient will become active and will be used for subsequent custom gradient operations.
Federico Mena Quintero; 1997

gimp_gradients_set_popup

Input:
STRINGgradients_callbackThe name of the callback registered for this popup
STRINGgradient_nameThe name of the gradient to set as selected
Returns: nothing
Sets the current gradient selection in a popup.
Andy Thomas; 1998

script_fu_gradient_bevel_logo

Input:
INT32run_modeInteractive, non-interactive
STRINGstringText
STRINGvalueFont Size (pixels)
STRINGfontFont
STRINGvalueBevel Height (Sharpness)
STRINGvalueBevel Width
COLORcolorBackground Color
Returns: nothing
Makes Shiny Bevelly text
Brian McFee; April 1998

script_fu_gradient_bevel_logo_alpha

Input:
INT32run_modeInteractive, non-interactive
IMAGEimageImage
DRAWABLEdrawableDrawable
STRINGvalueBorder Size (pixels)
STRINGvalueBevel Height (Sharpness)
STRINGvalueBevel Width
COLORcolorBackground Color
Returns: nothing
Makes Shiny Bevelly text
Brian McFee; April 1998

script_fu_gradient_example

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueWidth
STRINGvalueHeight
Returns: nothing
Create an example image of a custom gradient
Federico Mena Quintero; June 1997


The Gimp 1.2.5 (win32)Documentation fresh from PDB12:10:14 Do 19.06.03
Generated by pdb2doc.py written by Hans Breuer <Hans(at)Breuer.org>