Functional PostScript Tutorial
You can control how the paths get turned into picture by specifying the style used by picture makes. A style is a collection of attributes, where attribute is a piece of information about the picture: color, line width, etc.
There are several ways to change or specify style and attributes. The simplest way is to include the attribute as an argument to the picture makers:
(define thick-triangle-picture (stroke triangle-path (:line-width 10) (:color (rgb 1 0 0))))We have changed the line-width attribute from the default value of 1 to 5, and the color attribute from the default black to red (rgb creates a color in the red/green/blue model. More on color in the next section) so the resulting picture is painted in a thick red line.
Related procedures in this section:
build-style, vary-default, with-style, with-attrib,
attributes
FPS Tutorial Content: Intro and The Idea | Getting Started | Paths and Pictures | Show and Channels | Transformation | Composition | Glyphpaths | Style | Color | Colormap | Clipping | Glyphnames | Other Topics