Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
20 most used distinct visible colors
Message
From
07/12/2006 03:16:28
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
07/12/2006 03:09:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01175481
Message ID:
01175516
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform