Difference between revisions of "S2 Cookbook: Colors"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'To work with colors we use the [http://www.dreamwidth.org/customize/advanced/layerbrowse?id=core2#class.Color Color] class. With it, you can work with RGB or HSL values. == Cre…')
(No difference)

Revision as of 07:55, 17 June 2010

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