News for hackers. Stuff that matters.
Re:“Your program is stupid. It doesn't work,” my wife told m... by koliber on Friday November 25, 2016 @09:56AM (#13037110)
Happy wife == happy life.

I think the author handled it brilliantly. He only changes the saturation component to 1.0 only if it was zero and the user clicked on the outer wheel. His reasoning is that clicking on the outer wheel is a leading indicator that the user will end up changing the saturation in order to see the effective color.

This way he anticipates the needs of users. I think it is a nice usability tweak with minimal negative effects.

Re:“Your program is stupid. It doesn't work,” my wife told m... by Drdrdrq on Friday November 25, 2016 @12:53PM (#13038512)
Yes, except... What if saturation is 0.001? Or 0.01? Where is the limit?

I don't have a better solution though.

Re:“Your program is stupid. It doesn't work,” my wife told m... by tejaswiy on Friday November 25, 2016 @01:48PM (#13038952)
The reasoning there is if the saturation was at 0.001 someone made a conscious decision to put it at 0.001 and we shouldn't be messing with it.
Re:“Your program is stupid. It doesn't work,” my wife told m... by gumby on Friday November 25, 2016 @02:06PM (#13039081)
Presumably the initial (default) saturation is 0; any other value would have been specified by the user.
Re:“Your program is stupid. It doesn't work,” my wife told m... by koliber on Monday November 28, 2016 @04:23AM (#13054336)
I think anything but zero should preserve the standard behavior. The reason is that it is fairly easy to make the saturation zero. It takes a dedicated effort to make the saturation almost zero.

I am not familiar with this particular color picker and the resolution on the saturation. I would imagine that setting the saturation to zero is easy by clicking on the triangle and dragging into the corner, in order to corral the picker into the point at which saturation is 0. Picking a close-to-zero saturation involves a dedicated effort.