color(oscar) Animation color(oscar)
NAME
color
DESCRIPTION
Color is used to store rgb color values (red, green and
blue between zero and one) and also to convert rgb to hsv
(hue, saturation, value).
SUPERCLASS
vector
MESSAGES
=argument
sets red, green, and blue components of the color.
? returns red, green and blue components of the
color.
hsv=argument
sets the color given hue, saturation and value (see
Alvy Ray Smith, Color Gamut Transform Pairs, SIGGRAPH 78, August 21-25, 1978, pp. 12-19 for details
of hsv to rgb encoding)
hsv? returns hue, saturation, value of the color.
EXAMPLE
color new: `red' = (1, 0, 0);
color new: `green' = (0, 1, 0);
color new: `blue' = (0, 0, 1);
property new: p1 color = red;
property new: p2 color = green;
property new: p3 color = blue;
SEE ALSO
property, actor
Please send comments and suggestions toconsult@rpi.edu