Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opposite of RGB?
Message
From
18/04/2019 15:38:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01668191
Message ID:
01668194
Views:
52
>>Naomi,
>>
>>Prepend its hexadecimal value with # and you can use the full string as the value for a color in HTML.
>>
>>
>>'#' + (rgbColorValueAsResultOfGetColor).toString(16);
>>
>
>Thanks, Antonio. My colleague is working on that now, so I'll let you know how it goes.

Revised:
'#' + ('00000' + (rgbValue).toString(16)).slice(-6)
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform