When you set the saturation of white (or any color with maximum value and minimum saturation), the color should still remain white because increasing the saturation should not have any effect unless the hue is defined and c.Value is less than 1.
Also cleaned up ColorToHSV as it was possible for s = -nan (division by zero)
When you set the saturation of white (or any color with maximum value and minimum saturation), the color should still remain white because increasing the saturation should not have any effect unless the hue is defined and c.Value is less than 1. Also cleaned up ColorToHSV as it was possible for s = -nan (division by zero)
This addresses ticket #1285