![[index]](../icons/index.gif)
Next: DrawClear and Flip
Up: Viewport Graphics
Previous: Position Operations
A color can be represented in two ways: as a color index or as a
rgb value. All drawing functions which take a color argument
accept colors in both forms. An rgb value is assigned to and
index with change-color.
-
(make-rgb red green blue)
Takes three values in the range 0 (dark) to 1 (bright) and returns an
rgb (a color).
-
(rgb-red color)
(rgb-blue color)
(rgb-green color)
Return the red, green, and blue components, respectively, of a color.
-
(rgb? v)
Reports whether v is a color.
-
(change-color index rgb)
Changes the color at index in the color table to the
color specified in rgb.
-
(default-display-is-color?)
Returns #t if the default display
screen for viewports is in color or #f otherwise.
PLT