On 24/01/10 19:10, SamGoody wrote:
Right. Thanks. Should've checked first.
Far from a 1:1 ratio in any case:
16,777,216 != 3,600,000
Also, the rounding actually does mess up more numbers than I had
recalled.
Very, very few round numbers actually convert to round numbers.
I updated the test page to mootools 1.2.4 and cleaned the functions a
bit.
Its now actually a teeny bit longer, but still more efficient than the
moo method.
http://siteroller.net/projects/color/test.htm
You can click on the result boxes and it will convert the numbers
back, which makes it very easy to see what happens on a round trip.
(ie. click on "Convert from RGB", and then click on the HSB result,
and - look below - it will convert it back to RGB.)
-- Request for help --
I started writing an article on how color spaces work, but didn't know
how to do the graphics for the article.
I also need a pretty simple graphic for the MooRTE color picker, but
don't know how to use Photoshop.
If anyone reading this has some talent and time, I sure would
appreciate some help.
What sort of graphic are you looking for? The icon or the actual colour
wheel?
--
Not sent from my iPhone.