S2 Cookbook: Colors

From Dreamwidth Notes
Revision as of 07:55, 17 June 2010 by Foxfirefey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To work with colors we use the Color class. With it, you can work with RGB or HSL values.

Creating a color from a hex string

Making a copy of a color

Getting the hex string from a color

Blending two colors together

Getting a lighter or darker version of a color

Altering a color's values