example_script - Gimp::Fu example, mostly non-functional
<Image>/Filters/Languages/_Perl/_Test/Dialog
Just a starting point to derive new scripts. Always remember to put a descriptive help message here!
# one of each type of parameter here # argument type, variable name, short description, default, extra arguments [PF_SLIDER , "width" , "Image width" , 360, [300, 500]], [PF_SPINNER , "height" , "Image height" , 100, [100, 200]], [PF_STRING , "text" , "Message" , "example text"], [PF_TEXT , "longtext" , "Longer text" , "more example text"], [PF_FILE , "file" , "File" , "/tmp"], [PF_INT8 , "int8" , "8-bit int" , 10], [PF_INT32 , "bordersize" , "Border size" , 10], [PF_FLOAT , "borderwidth" , "Border width" , 1/5], [PF_FONT , "font" , "Font"], [PF_COLOUR , "text_colour" , "Text colour", [10,10,10]], [PF_COLOUR , "bg_colour" , "Background colour" , [0xff,0x80,0]], [PF_TOGGLE , "ignore_cols" , "Ignore colours" , 0], [PF_IMAGE , "extra_image" , "Additional picture to ignore"], [PF_DRAWABLE , "extra_draw" , "Something to ignore as well" ], [PF_RADIO , "type" , "Effect type" , 0, [small => 0, large => 1]], [PF_BRUSH , "a_brush" , "An unused brush"], [PF_PATTERN , "a_pattern" , "An unused pattern"], [PF_GRADIENT , "a_gradients" , "An unused gradients"],
Marc Lehmann <pcg@goof.com>
2000-03-21
(c) 1998,1999,2000 Marc Lehmann
Distributed under the same terms as Gimp-Perl.
To install Gimp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gimp
CPAN shell
perl -MCPAN -e shell install Gimp
For more information on module installation, please visit the detailed CPAN module installation guide.