Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
20 most used distinct visible colors
Message
De
07/12/2006 03:21:42
 
 
À
07/12/2006 03:16:28
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01175481
Message ID:
01175517
Vues:
8
I have to leave fro Denmark now, but run my command, ?color2rgb(GetColor()), and click the colors you want. For yellow, you will see 255,255,0. For brown you will see 128,64,0. It's that easy.

>>I don't know what you really mean. There are only 8 distinct colors if you don't want shades. With no shades, you mean each color can only be 0 or 255, so you have the following eight options:
>>
>>1. RGB(0,0,0)
>>2. RGB(0,0,255)
>>3. RGB(0,255,0)
>>4. RGB(0,255,255)
>>5. RGB(255,0,0)
>>6. RGB(255,0,255)
>>7. RGB(255,255,0)
>>8. RGB(255,255,255)
>>
>>If any color also can be 127, you have even more colors. You can easily create a small program to present all the different color combinations on the screen. Hey, wait, isn't that exactly what getcolor() does? :-)
>>
>>Which are "most used" I really don't know, since I don't know of anyone ever have had any survey on this. Frankly, I think the solution I gave you is the best.
>
>
>Hi,
>Yes The solution You have give is the best I agree too.
>
>It is for a graph and when i mean distinct is that the human eye must be able to differenciate properly between two different colors i provide. If the users choose a custom color than that is different issue.
>
>It is as though in a combo i will have red,green,blue,yellow,....,custom
>just wanted to know more basic colors and their RGB values
>
>Hope you get what i am looking for
>
>suhashegde
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform