6.6 color%
A color is an object representing a red-green-blue (RGB) combination of primary colors, and is used to determine drawing colors. Each red, green, or blue component of the color is in the range 0 to 255, inclusive. For example, (0, 0, 0) is black, (255, 255, 255) is white, and (255, 0, 0) is red.
See
color-database<%> for information about obtaining a color object using a color name.
(make-object color%->redgreenblue)color%object
red: exact integer in [0, 255]
green: exact integer in [0, 255]
blue: exact integer in [0, 255]Creates a new color with the given RGB values.
(make-object color%->color-name)color%object
color-name: stringCreates a new color by name, using
the-color-database. (Seecolor-database<%>for more information.)
Methods
blue
copy-from
green
ok?
red
set