Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement