Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Numbers 2 and 3 are absolutely true if you've correctly implemented your HLS or HSV conversions. Is it possible that the feColorMatrix filter uses radians instead of degrees? Commented Oct 5, 2013 at 2:13
  • 2
    No, since rotating feColorMatrix by 360 indeed yields the original color. Rotating twice by 180 doesn't, as shown in the example. The difference is much larger than a simple rounding error, in both webkit-filters and SVG filters Commented Oct 5, 2013 at 6:53
  • So I took the image made by your code into an image manipulation program, and what I'm seeing is that the hue is correct on all the color swatches, but the saturation and value (or luminance if you prefer) are not correct. In order to get them to match, I had to turn the saturation up from 1 (meaning no change) to 3, and the value down to about 0.6. Then the swatches mostly matched. So it looks like the issue isn't the hue, but the other two channels, from what I can tell. Commented Oct 5, 2013 at 14:04