| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |
Arguments: &key red green blue scratch-rgb
Returns an rgb color object with the specified values of red, green, and blue. All arguments should be integers between 0 and 255. All default to 0.
If the scratch-rgb argument is specified, it should be a rgb object (such as created by make-rgb) which will be modified to have the new red, green, and blue values. This avoids consing a new rgb object and is particularly useful when many colors are created, used temporarily, and discarded.
Note that the value of color properties (such as background-color and foreground-color) must be RGB color objects, as made with make-rgb. If you use HLS colors, you should apply the function hls-to-rgb to an HLS color before setting a color property to it. You can use the function rgb-to-hls to get the HLS equivalent of an RGB color.
See also make-hls, hls-to-rgb, rgb-to-hls, and rgb-blue, rgb-red, rgb-green, rgb-equal, rgb-p, and rgb
.
And see cg-color-palettes.htm.
A number of RGB objects are pre-defined as the values of the following symbols:
black
white
gray
dark-gray
light-gray
red
dark-red
light-red
green
dark-green
light-green
blue
dark-blue
light-blue
cyan
dark-cyan
light-cyan
magenta
dark-magenta
light-magenta
yellow
dark-yellow
light-yellow
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |