Hi guys,
I’m working on a little script to change the color by hue, saturation and value (HSV) .
So I have 3 sliders to set the values which will be converted to the RGB values to set the color in the color menu in Zbrush.
I used the code from these examples in JavaScript and translated it to ZScript:
http://snipplr.com/view/14590
http://www.webtoolkit.info/javascript-color-conversion.html
I’m pretty sure I did everything exactly as in the the reference scripts.
The problem is, the saturation doesn’t seem to work at all and the hue only chenges in steps…kind of
What is the problem here :S ?
Script is attached: