See color-database<%> for information about obtaining a color object using a color name, and see also make-color.
(make-object color%) → (is-a?/c color%)
(make-object color% red green blue [alpha]) → (is-a?/c color%) red : byte? green : byte? blue : byte? alpha : (real-in 0 1) = 1.0 (make-object color% color-name-or-obj) → (is-a?/c color%) color-name-or-obj : (or/c string? (is-a?/c color%))
If three or four arguments are supplied to the constructor, the color is created with those RGB and alpha values.
If a single color% object is supplied, the color is created with the same RGB and alpha values as the given color.
If a string is supplied, then it is passed to the color-database<%>’s find-color method to find a color (signaling an error if the color is not in the color-database<%>’s get-names method’s result).
If no arguments are supplied, the new color is black.
red : byte? green : byte? blue : byte? alpha : (real-in 0 1) = 1.0
(send a-color is-immutable?) → boolean?
See also make-color and find-color in color-database<%>.
We can compare instances of color% using equal?. Two color% instances are equal if the red, green, blue, and alpha values are equal. I.e., a mutable and an immutable color% instance are equal as long as their values are equal.