Show HN: C# Color Space Converter
github.com
github.com
No it doesn't. For example, for single bit of precision, saturated addition is bitwise or, saturated subtraction is bitwise andnot. Obviously, the electronic doing these bitwise operations do not use any extra bits. Similarly, for higher count of bits, the electronic doing the math may or may not have that extra precision.
What I use it for is:
* RGB - easy to guess what values to use to make a color
* HSL - easy to change the hue of a color
* Lab - lets you compare colors
* Named color - lets you know the name of a color
There are a lot of helpful methods available.
Color foo = Color.FromArgb(int); int foo = Color.ToArgb(); Color foo = Color.FromName("CornflowerBlue");
Color itself also exposes .IsKnownColor and .IsNamedColor
Very useful when making gradients.
I used this for my MSc thesis project :)
HSV is just a rearrangement of RGB for improved color picking dialog boxes, not for any serious computation with color.