I need to create a table with color codes.
From the file FOXPRO.H I got this:
*-- Properties
*-- Colors
#DEFINE COLOR_WHITE 16777215
#DEFINE COLOR_BLACK 0
#DEFINE COLOR_GRAY 12632256
#DEFINE COLOR_DARK_GRAY 8421504
#DEFINE COLOR_RED 255
#DEFINE COLOR_DARK_BLUE 8388608
#DEFINE COLOR_CYAN 16776960
#DEFINE COLOR_DARK_CYAN 8421376
#DEFINE COLOR_GREEN 65280
#DEFINE COLOR_DARK_GREEN 32768
#DEFINE COLOR_YELLOW 65535
#DEFINE COLOR_DARK_YELLOW 32896
#DEFINE COLOR_BLUE 16711680
#DEFINE COLOR_DARK_RED 128
#DEFINE COLOR_MAGENTA 16711935
#DEFINE COLOR_DARK_MAGENTA 8388736
I wonder how are the numbers obtained. I do not want to use the RGB
function and I saw somewhere an algorithm or a function that gives those
numbers.
How?
Rafael Copquin
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.