Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding contrasting colors
Message
De
23/10/2002 17:26:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Finding contrasting colors
Divers
Thread ID:
00714574
Message ID:
00714574
Vues:
51
Hello
I have a grid where the backcolor is set at runtime using the dynamicbackcolor property

I need to make the text readable no matter the back color. I tried setting dynamicforecolor to bitxor(dynamicbackcolor, rgb(255,255,255)), but the results are disgusting

I want to set dynamicforecolor to black if the back color is light and to white if the back color is dark. But I cannot find a function that reliably tells me the "intensity" or "luminance" of the color...

Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform