Functional Problem Solving (CSC 151 2013F) : Reference

GIMP Context


Getting Basic Context Information

(context-get-bgcolor)
MediaScheme GIMP Procedure. Returns GIMP's current background color (as an RGB color).
(context-get-brush)
MediaScheme GIMP Procedure. Get GIMP's active brush.
(context-get-fgcolor)
MediaScheme GIMP Procedure. Returns GIMP's current foreground color (as an RGB color).

Setting Basic Context Information

(context-set-bgcolor! color)
MediaScheme GIMP Procedure. Sets GIMP's current background color to color.
(context-set-brush! brush-name) , (context-set-brush! brush-name brush-size)
MediaScheme GIMP Procedure. Sets GIMP's current brush to brush-name. If the brush-size is specified, also sets the size of brush. Only works for selected brushes (typically, those that start with a number, like "2. Hardness 100").
(context-set-fgcolor! color)
MediaScheme GIMP Procedure. Sets GIMP's current foreground color to color.

Listing Values

(context-get-color-names)
MediaScheme GIMP Procedure. Get a vector of all the available color names.
(context-list-brushes)
MediaScheme GIMP Procedure. List all valid brush names.
(context-list-brushes pattern)
MediaScheme GIMP Procedure. List all the valid brush names that contain pattern.
(context-list-colors)
MediaScheme GIMP Procedure. List all valid color names.
(context-list-colors pattern)
MediaScheme GIMP Procedure. List all the valid color names that contain pattern.
(context-list-fonts)
MediaScheme GIMP Procedure. List all valid font names.
(context-list-fonts pattern)
MediaScheme GIMP Procedure. List all the available font names that contain pattern.

Miscellaneous

(context-update-displays!)
MediaScheme GIMP Procedure. Update all of the displays to show changes to images.

Samuel A. Rebelsky, rebelsky@grinnell.edu

Copyright (c) 2007-2013 Janet Davis, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials are copyright by John David Stone or Henry Walker and are used with permission.)

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.