Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > selecting a pallete of unique colors

Reply
Thread Tools

selecting a pallete of unique colors

 
 
Rahul
Guest
Posts: n/a
 
      07-22-2010
This is more of a design and perception question so not sure what's a good
group to post it on. I'm trying to generate a automated php status page for
user-jobs running on our server-farm. Like so:

http://dl.dropbox.com/u/118481/web_colors.jpg

Each server name (eu001-eu261) is associated with exactly one jobnumber.
But some jobs can run across many servers. i.e. number of jobs < number of
servers. Many jobs use multiple servers.

I tried loading a sample of HEX color values but many send up being so
close to each other that often it gives an effect where servers seem to
have the same color when, in fact, they have a different job that just
randomly got assigned a similar color.

Is there a way to get a pallate of 50 or so fairly unique (to perception)
colors?

--
Rahul
 
Reply With Quote
 
 
 
 
Denis McMahon
Guest
Posts: n/a
 
      07-22-2010
On 22/07/10 23:50, Rahul wrote:
> This is more of a design and perception question so not sure what's a good
> group to post it on. I'm trying to generate a automated php status page for
> user-jobs running on our server-farm. Like so:
>
> http://dl.dropbox.com/u/118481/web_colors.jpg
>
> Each server name (eu001-eu261) is associated with exactly one jobnumber.
> But some jobs can run across many servers. i.e. number of jobs < number of
> servers. Many jobs use multiple servers.
>
> I tried loading a sample of HEX color values but many send up being so
> close to each other that often it gives an effect where servers seem to
> have the same color when, in fact, they have a different job that just
> randomly got assigned a similar color.
>
> Is there a way to get a pallate of 50 or so fairly unique (to perception)
> colors?


Hmm

You might be able to simplify the problem:

1) Use a standard colour for any job that is only running on a single
server. This means that several jobs may be able to share a colour.

2) Use a standard colour for an unused server.

However, it might be that the way you're choosing to present the data
isn't the best way to do so.

Could you group the servers by job, with the jobs ordered by number of
servers?

Or perhaps a pie chart?

I think part of your problem is that you're trying to convey too much
information in a single graphic.

Rgds

Denis McMahon
 
Reply With Quote
 
 
 
 
Jerry Stuckle
Guest
Posts: n/a
 
      07-23-2010
Rahul wrote:
> This is more of a design and perception question so not sure what's a good
> group to post it on. I'm trying to generate a automated php status page for
> user-jobs running on our server-farm. Like so:
>
> http://dl.dropbox.com/u/118481/web_colors.jpg
>
> Each server name (eu001-eu261) is associated with exactly one jobnumber.
> But some jobs can run across many servers. i.e. number of jobs < number of
> servers. Many jobs use multiple servers.
>
> I tried loading a sample of HEX color values but many send up being so
> close to each other that often it gives an effect where servers seem to
> have the same color when, in fact, they have a different job that just
> randomly got assigned a similar color.
>
> Is there a way to get a pallate of 50 or so fairly unique (to perception)
> colors?
>


PHP knows nothing about colors - that is strictly HTML.

You can pick any colors you want. And how to do it is up to you.

I guess I'm really wondering what your PHP question is.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

==================
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-23-2010
Jerry Stuckle wrote:

> Rahul wrote:
>> Newsgroups: alt.html,comp.lang.php

>
> PHP knows nothing about colors - that is strictly HTML.
>
> I guess I'm really wondering what your PHP question is.


Note where Rahul posted his question.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Jerry Stuckle
Guest
Posts: n/a
 
      07-23-2010
Beauregard T. Shagnasty wrote:
> Jerry Stuckle wrote:
>
>> Rahul wrote:
>>> Newsgroups: alt.html,comp.lang.php

>> PHP knows nothing about colors - that is strictly HTML.
>>
>> I guess I'm really wondering what your PHP question is.

>
> Note where Rahul posted his question.
>


I did, Beauregard. Just pointing out that c.l.p is not a good place to
ask such a question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

==================
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-23-2010
Jerry Stuckle wrote:

> Beauregard T. Shagnasty wrote:
>> Jerry Stuckle wrote:
>>> Rahul wrote:
>>>> Newsgroups: alt.html,comp.lang.php
>>> PHP knows nothing about colors - that is strictly HTML.
>>>
>>> I guess I'm really wondering what your PHP question is.

>>
>> Note where Rahul posted his question.

>
> I did, Beauregard. Just pointing out that c.l.p is not a good place
> to ask such a question.


Why not? The PHP is going to have to generate the HTML (probably from
an array of color codes) ... seems logical to me. There's no way the
post-PHP script (the HTML) is going to be able to know what colors to
use for the points on the graph.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Jerry Stuckle
Guest
Posts: n/a
 
      07-23-2010
Beauregard T. Shagnasty wrote:
> Jerry Stuckle wrote:
>
>> Beauregard T. Shagnasty wrote:
>>> Jerry Stuckle wrote:
>>>> Rahul wrote:
>>>>> Newsgroups: alt.html,comp.lang.php
>>>> PHP knows nothing about colors - that is strictly HTML.
>>>>
>>>> I guess I'm really wondering what your PHP question is.
>>> Note where Rahul posted his question.

>> I did, Beauregard. Just pointing out that c.l.p is not a good place
>> to ask such a question.

>
> Why not? The PHP is going to have to generate the HTML (probably from
> an array of color codes) ... seems logical to me. There's no way the
> post-PHP script (the HTML) is going to be able to know what colors to
> use for the points on the graph.
>


PHP knows nothing about color. It also knows nothing about HTML. That
is just strings to PHP.

Please show me where in the PHP manual it discusses text colors, for
instance. The only place you'll find such is in the GD libraries.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

==================
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-23-2010
Jerry Stuckle wrote:

> Beauregard T. Shagnasty wrote:
>> Jerry Stuckle wrote:
>>> Beauregard T. Shagnasty wrote:
>>>> Jerry Stuckle wrote:
>>>>> Rahul wrote:
>>>>>> Newsgroups: alt.html,comp.lang.php
>>>>> PHP knows nothing about colors - that is strictly HTML.
>>>>>
>>>>> I guess I'm really wondering what your PHP question is.
>>>> Note where Rahul posted his question.
>>>
>>> I did, Beauregard. Just pointing out that c.l.p is not a good
>>> place to ask such a question.

>>
>> Why not? The PHP is going to have to generate the HTML (probably
>> from an array of color codes) ... seems logical to me. There's no
>> way the post-PHP script (the HTML) is going to be able to know what
>> colors to use for the points on the graph.

>
> PHP knows nothing about color. It also knows nothing about HTML.
> That is just strings to PHP.
>
> Please show me where in the PHP manual it discusses text colors, for
> instance. The only place you'll find such is in the GD libraries.


PHP knows what you write in the script.

You're getting off-track. Rahul wants to generate a chart. He will have
to code the colors in the PHP script for the various parts of the chart,
and generate the HTML to display to the browser. Simple enough to
realize what's necessary.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Geoff Berrow
Guest
Posts: n/a
 
      07-23-2010
On Thu, 22 Jul 2010 22:50:40 +0000 (UTC), Rahul
<> wrote:

>Is there a way to get a pallate of 50 or so fairly unique (to perception)
>colors?


I can't comment about perception (or the way different monitors
display colours) other than to say avoid the blue end of the spectrum.

But to get an even distribution of 64 colours is easy enough

000000, 000033, 000077, 0000BB 0000FF,330000,330033, etc

See http://www.4theweb.co.uk/test/colorpicker64.php

Even so, there just isn't enough difference

It's tough even with 27 colours
http://www.4theweb.co.uk/test/colorpicker27.php

You may have more luck changing the background colour as well

--
Geoff Berrow (Put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs www.4theweb.co.uk/rfdmaker

 
Reply With Quote
 
Jerry Stuckle
Guest
Posts: n/a
 
      07-23-2010
Beauregard T. Shagnasty wrote:
> Jerry Stuckle wrote:
>
>> Beauregard T. Shagnasty wrote:
>>> Jerry Stuckle wrote:
>>>> Beauregard T. Shagnasty wrote:
>>>>> Jerry Stuckle wrote:
>>>>>> Rahul wrote:
>>>>>>> Newsgroups: alt.html,comp.lang.php
>>>>>> PHP knows nothing about colors - that is strictly HTML.
>>>>>>
>>>>>> I guess I'm really wondering what your PHP question is.
>>>>> Note where Rahul posted his question.
>>>> I did, Beauregard. Just pointing out that c.l.p is not a good
>>>> place to ask such a question.
>>> Why not? The PHP is going to have to generate the HTML (probably
>>> from an array of color codes) ... seems logical to me. There's no
>>> way the post-PHP script (the HTML) is going to be able to know what
>>> colors to use for the points on the graph.

>> PHP knows nothing about color. It also knows nothing about HTML.
>> That is just strings to PHP.
>>
>> Please show me where in the PHP manual it discusses text colors, for
>> instance. The only place you'll find such is in the GD libraries.

>
> PHP knows what you write in the script.
>
> You're getting off-track. Rahul wants to generate a chart. He will have
> to code the colors in the PHP script for the various parts of the chart,
> and generate the HTML to display to the browser. Simple enough to
> realize what's necessary.
>


You're getting off topic. Please see his original question (which you
conveniently snipped):

"Is there a way to get a pallate of 50 or so fairly unique (to
perception) colors?"

Please show me where in the PHP manual it discusses such.

Also, I see nothing to indicate a chart. He could easily be talking
about a table, for instance.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

==================
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to avoid the sorting of elements in the pallete component(netbeans) jaysaj Java 0 08-29-2011 01:07 PM
TreeNode colors come from anchor colors AAaron123 ASP .Net 1 08-07-2008 07:56 PM
How to design a colour pallete of uploaded .gif or jpeg images with selection option? savvy ASP .Net 0 05-22-2006 09:36 AM
photo shop 7.0 locks up when choosing the color pallete BEM Computer Support 5 11-12-2005 10:55 PM
Check if uploaded jpg uses CMYK or RGB pallete?? gt ASP .Net 0 12-03-2003 11:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57