Colour Picker and things..
[1/7] from: james::mustard::co::nz at: 22-Dec-2002 15:23
After reading Carl's post re the improved color picker I remembered
something I had stashed away but never finished the last 15% of - a
Paintshop / Adobe style color picker.
If anyone would be interested in having a play and possibly fixing/finishing
it (the colour picking is done just the html and decimal values are not
computed for alternate uses and the colour memory table is not set) then it
can be found at:
www.mustard.co.nz/rebol/cpicker.r
oh - if you right click on the colour grid it will do an enlargement for the
sight challenged (like me) :-P
James.
[2/7] from: james:mustard at: 24-Dec-2002 20:07
Does anyone on the list know the conversion equations to convert RGB to HSL
values? I cheated with my initial HSL calculations by building an actual
HSL swatch but now I've added an RBG system palette to the colour picker I
am in a bit of a pickle :P
For the updated cpicker (to know what I'm babbling about) go to:
www.mustard.co.nz/rebol/cpicker.r
You will note (if you've looked previously) that I've added HTML and Decimal
values in and added a check for 3 vs 4 byte colours in different view
versions. Also added is System Palette / Color words.
James.
[3/7] from: ammon:addept:ws at: 24-Dec-2002 1:47
Wow! There is a lot of work put into that thing. ;-) I was wondering about
the possibilities of doing CYMK with it? I know that somebody here has a
good HSL script, I believe it was Sunanda, and I probably snagged it and put
it in one of my directories somewhere so if no one else comes up with it I
can go looking. ;-)
Enjoy!!
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammon AT addept.ws)
[4/7] from: doncox:enterprise at: 24-Dec-2002 11:58
Hello Ammon
On 24/12/02, Ammon Johnson wrote:
> Wow! There is a lot of work put into that thing. ;-) I was wondering
> about the possibilities of doing CYMK with it? I know that somebody
> here has a good HSL script, I believe it was Sunanda, and I probably
> snagged it and put it in one of my directories somewhere so if no one
> else comes up with it I can go looking. ;-)
Matrices here:
http://www.sgi.com/grafica/matrix/index.html
Look for "A Guided Tour of Color Space" here:
http://www.inforamp.net/~poynton/papers/
(that link isn't working for me today)
The basic reference for all this is the book "Reproduction of Colour" by
Hunt, which should be in most large libraries, in one edition or other.
Regards
--
Don Cox
[doncox--enterprise--net]
[5/7] from: tomc:darkwing:uoregon at: 24-Dec-2002 9:47
Hi James,
I posted hsl<->rgb converters to this list sometime before a year ago
I will have to poke around on another machine to find it but you might
locate it on escribe before then
ah here
http://www.escribe.com/internet/rebol/m16550.html
someone improved it (tupelized it) that would be the one to find
On Tue, 24 Dec 2002, James Marsden wrote:
[6/7] from: james:mustard at: 25-Dec-2002 10:09
Thanks Tom, I did a quick check in my rebol email (I have 2 1/2 years data
here :P) but I was searching under HSL not HSB/HSV heh.
Regards,
James
[7/7] from: james:mustard at: 26-Dec-2002 0:13
Hi All,
well thanks to Tom the Colour Picker has been updated to include RGB-HSL and
HSL-RGB conversions. Also added swatch positional pointers in zoom and
standard modes. System palette now sets default hue on wheel as well as new
colour.
www.mustard.co.nz/rebol/cpicker.r for new version.
Still need to do optimisation on some aspects like initial colour wheel
generation and moving swatch functions inside the cpicker object but apart
from that (and the user defined colours...) its almost complete :)
James