Re: Hex Conversion
This is a common misconception. Hex, binary, decimal, octal, and even =
ASCII characters are all different *representations* of the same number. =
When passing colors as atoms, it doesn't matter whether you use hex or =
decimal. If I say 255 or #FF, it's the same. Many people are just more =
comfortable with hex representation from programming HTML. On the other =
hand, when passing as strings, it may be quite important which format you =
use depending on how the routine parses the string. But as you already =
mentioned, sprintf handles that situation quite nicely.
HTH,
Michael J. Sabal
>>> bensler at MAILOPS.COM 06/16/00 10:57AM >>>
Hello,
I was wondering if there is a way I can convert a number to a hex, =
which I could then pass as a parameter to another routine. the only hex =
conversion that EU does is to a string, but the routine won't except that. =
I need it to be converted to a real hex object.
The reason I want this is for Todd's Exotica API. All the 3d routines that =
have color params, only except hex format. I'd like to be able to pass an =
actual color value.
The way it is now, there is no way to have dynamic colors with those =
routines.
Perhaps this is a niche that only RDS can fill.
Hope I made sense.
Chris
|
Not Categorized, Please Help
|
|