News for hackers. Stuff that matters.
Re:All RGB colors in one image by blt on Monday March 03, 2014 @02:05PM (#7335658)
Would be cool to re-apply all the algorithms to HSV space and see what comes out.
Re:All RGB colors in one image by jacobolus on Monday March 03, 2014 @03:38PM (#7336282)
HSV is just a straight-forward transformation of RGB https://en.wikipedia.org/wiki/File:Hsl-and-hsv.svg

The set of “all colors” is exactly the same.

(Note, HSL/HSV are not suitable representations for almost any purpose, especially not for human user interfaces; it’s a tragedy that they are in such wide use.)

Re:All RGB colors in one image by skeltoac on Monday March 03, 2014 @04:27PM (#7336612)
A color space is good for transforming colors along lines orthogonal to its axes. In RGB, you can't easily find another shade of a given hue. In HSV, this common task is trivial.
Re:All RGB colors in one image by lstamour on Monday March 03, 2014 @04:29PM (#7336625)
I was going to comment that HSL/HSV can be useful for generating colors that work well, but... the real problem is not luminance as much as the HSL values we commonly use. See http://en.wikipedia.org/wiki/HSL_and_HSV#Disadvantages where CIELAB L* is shown as a better representation. Though it's not perfectly matched to the human eye even so.
Re:All RGB colors in one image by jacobolus on Monday March 03, 2014 @10:10PM (#7338201)
Re:All RGB colors in one image by TylerE on Monday March 03, 2014 @04:08PM (#7336479)
Whjy do you say that? I find them much more intuitive. For example, getting actually brown browns with RGB is tricky...with HSV it's trivial.
Re:All RGB colors in one image by nitrogen on Monday March 03, 2014 @06:06PM (#7337233)
A rule of thumb if you have to find brown in RGB: use a bit of red, slightly less green, then a tiny bit of blue.
Re:All RGB colors in one image by andrewflnr on Monday March 03, 2014 @07:31PM (#7337637)
That kind of proves the point. How many of those rules of thumb are you going to have to formulate to express in RGB what's trivial to find in HSV?
Re:All RGB colors in one image by nitrogen on Tuesday March 04, 2014 @01:29AM (#7338834)
Unfortunately I've already formulated them after working so much with RGB in low-level graphics code, pre-hsv() CSS, and some image editing software.

Actually, that sounds kind of like a fun challenge game: name a color, then try to guess RGB values for that color.

Re:All RGB colors in one image by entropy_ on Tuesday March 04, 2014 @05:33AM (#7339428)
I've gotten pretty good at doing the reverse operation(given an RGB value, guess the color) because I'm red-green colorblind and that's how I figure out what color something is :)
Re:All RGB colors in one image by robinhouston on Tuesday March 04, 2014 @07:39AM (#7339807)
The converse game exists: http://yizzle.com/whatthehex/

Edit: Actually, so does the “guess the RGB given the colour” direction, but I don’t find it as fun: http://mallory.jemts.com

Re:All RGB colors in one image by roryokane on Tuesday March 04, 2014 @02:13AM (#7338934)
jacobulus might have been referring to certain color spaces that are optimized for human use instead of for computer manipulation, such as HUSL (http://www.boronine.com/husl/). HUSL gives you a slider that actually changes the apparent brightness of a color to your eye: whereas HSL thinks that bright green is just as “light” as dark true blue, and HSV/HSB thinks that true blue is just as “bright” as white, HUSL colors with the same “lightness” actually do look equally light. Another human-optimized color space is CIELUV (https://en.wikipedia.org/wiki/CIELUV).
Re:All RGB colors in one image by lcrs on Monday March 03, 2014 @07:49PM (#7337704)
The mapping is not one-to-one though - for example when S is 0, all values of H give the same resulting colour, and worse when V is zero both H and S are useless. So an image exploring the full HSV space should look different, probably with a lot more of the grayscale.

I too have misgivings about HSV, the discontinuities created when generating hue ramps being particularly cruel. Using a rotation about the luma axis in YCbCr space gives much smoother rainbows but sadly not ones which hit all six primaries and secondaries. It's frustrating problem that perceptually H, S and V or L are what we think of when specifying a colour, but mapping them smoothly to RGB displays is so tough.