Connecting Tech Pros Worldwide Forums | Help | Site Map

color wheel picker

Andrew Poulos
Guest
 
Posts: n/a
#1: Jul 23 '05
I need to build a colour wheel. It has these specs:
- The user needs to be able to select a colour from it
- It should show as many colours as reasonable. The client wanted the
entire 16 million+ colour spectrum but I pointed out that at one colour
per pixel that's a 2,000 pixel square. It would be good to get thousands
of colours.
- The colours in the wheel should have a smooth transition across the wheel.

I was thinking of building the wheel in some other app and screen
capturing it and then using some arithmetic to work out the colour under
the cursor but the numbers are killing me.

Can anyone either tell me where I can find one or how I can go about
building one?

Andrew Poulos

RobB
Guest
 
Posts: n/a
#2: Jul 23 '05

re: color wheel picker


Andrew Poulos wrote:[color=blue]
> I need to build a colour wheel. It has these specs:
> - The user needs to be able to select a colour from it
> - It should show as many colours as reasonable. The client wanted the
> entire 16 million+ colour spectrum but I pointed out that at one[/color]
colour[color=blue]
> per pixel that's a 2,000 pixel square. It would be good to get[/color]
thousands[color=blue]
> of colours.
> - The colours in the wheel should have a smooth transition across the[/color]
wheel.[color=blue]
>
> I was thinking of building the wheel in some other app and screen
> capturing it and then using some arithmetic to work out the colour[/color]
under[color=blue]
> the cursor but the numbers are killing me.
>
> Can anyone either tell me where I can find one or how I can go about
> building one?
>
> Andrew Poulos[/color]

Always kind of liked this one:

http://simplythebest.net/scripts/DHT...cript_115.html

Uses a jpg - but it's a reasonable weight for the task.

RobB
Guest
 
Posts: n/a
#3: Jul 23 '05

re: color wheel picker


Not a wheel, but...

http://www.daltonlp.com/daltonlp.cgi...=1&item_id=174

Richard Cornford
Guest
 
Posts: n/a
#4: Jul 23 '05

re: color wheel picker


Andrew Poulos wrote:
<snip>[color=blue]
> ... . The client wanted the entire 16 million+
> colour spectrum but I pointed out that
> at one colour per pixel that's a 2,000 pixel
> square. ...[/color]
<snip>[color=blue]
> I was thinking of building the wheel in some other app and screen
> capturing it and then using some arithmetic to work out the colour
> under the cursor but the numbers are killing me.[/color]
<snip>

Apparently the number are killing you. A square showing all of the 24
bit pallet would be 4096 pixels square.

Picking from a pre-created image, and deducing the colors form the
offsets is still going to be the most practical approach (if you insist
on having a 'color wheel' to start with) as otherwise you would need
thousands of individually colored HTML elements (table cells or DIVs or
something) and that would be a monstrous download (or an really slow
script) just for a minor GUI widget.

Richard.


Closed Thread