Hi hlf:
Thank you for the speedy clarification. :-)
The decimal numbers that this applet uses are a decimal translation of
the hexadecimal RGB (Red, Green, Blue) values that typically represent
a color. For example, the RGB values for "light blue" are:
R: D0
G: F0
B: FF
What you need to do is concatenate those three values into a single
hexadecimal number:
Hex: D0F0FF
then convert that number to decimal:
Decimal: 13693183
These numbers can be substituted into the applet you are using.
How do you convert between hexadecimal and decimal? There's a good
tutorial on this at:
CONVERTING HEXADECIMAL TO DECIMAL
http://www.permadi.com/tutorial/numHexToDec/index.html
One thing you need to keep clear is that the decimal numbers that this
applet uses *are not* found by concatenating each of the three
individual hexadecimal numbers first converted to decimal. You must
concatenate the hexadecimal numbers *before* you convert! The two
different procedures will yield two different values.
If you are given the three decimal RGB values (each between 0 and 255
inclusive), then you have to convert each of them to hexadecimal
first. For example, if you are given:
R: 224
G: 51
B: 63
as your three decimal color values, first translate them each to
hexadecimal:
R: E0
G: 33
B: 3F
then concatenate those three values into a single hexadecimal number:
Hex: E0333F
and convert that number to decimal:
Decimal: 14693183
This is the "orange-red" color you listed above.
How to convert from decimal to hexadecimal?
CONVERTING DECIMAL TO HEXADECIMAL
http://www.permadi.com/tutorial/numDecToHex/index.html
If you want to test out the color create by RGB values, try:
RGB Color Applet
http://www.freeprogrammingresources.com/color.html
I hope that I've hit on the information you are seeking. If I've
missed the mark at all or if you need any other clarification of the
information I have provided, please ask using the Clarification
feature and provide me with additional details as to what you are
looking for. As well, please allow me to provide you with
clarification(s) *before* you rate this answer.
Thank you.
websearcher-ga
Search Strategy:
decimal color coding
://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&safe=off&q=rgb+color+applet
java "hexadecimal to decimal" conversion
://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&safe=off&q=java+%22hexadecimal+to+decimal%22+conversion
rgb color applet
://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&safe=off&q=rgb+color+applet |