Color Definitions
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!
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement