Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opposite of RGB?
Message
De
18/04/2019 15:38:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01668191
Message ID:
01668194
Vues:
53
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform