Color class
Summary
Methods
Darken(amt)shared
Returns a darker copy of the color.
Lighten(amt)shared
Returns a lighter copy of the color.
Methods
Returns a darker copy of the color.
Parameters
- amt Number Amount subtracted from each of the red, green and blue components
Returns
- Color The new color, clamped to 0 to 255, with the same alpha
See also
Returns a lighter copy of the color.
Parameters
- amt Number Amount added to each of the red, green and blue components
Returns
- Color The new color, clamped to 0 to 255, with the same alpha