Advertisement

Color Definitions

Started by April 07, 2002 07:50 PM
1 comment, last by Mosh 22 years, 8 months ago
Hi, i was recently reviewing some code, and i found some things that i don''t know about. I''m pretty sure they are colors, but i don''t know what colors they are. They are used like this: 0xffffffff 0xff00c100 0xff00ff00 etc, etc.... I was wondering if there is a list somewhere that describes what all these are? Could someone please provide a link or something to help me? Thankyou.
Life is all about expression, so express yourself.
It works like this: the first two digits after the ''x'' represent the alpha/transparency value. The next two represent the red component (usually), followed by two digits for green and two digits for blue. These digits are in hexadecimal notation and their values range from 0 - 255.

There are macros to help you build these colors as well as to help you extract the various components. Lookup RGB and COLORREF for Win32.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! | Asking Smart Questions ]
Thanks to Kylotan for the idea!
Advertisement
Thanks Oluseyi, I understand now!
Life is all about expression, so express yourself.

This topic is closed to new replies.

Advertisement