Hi all,
Maybe some of you have noticed that the superb Gradient script uses 0-100 percent for hue (H)
instead of the commonly used 0-360 degrees for hue (H). So, to choose colors from a reference
image or palette you may do the following, as I currently do:
Look at an online site for RGB to HSV or HSB conversion or check the color palette in your Graphics
Editor and choose the HSV or HSB color there.
Then simply calculate the correct values for Hue = n for the script like: n/360*100 wich gives you for
example 70.83. In order to input these values in the script I have changed line 19 and 30 in the .html file to:
'NumericInput' instead of 'IntegerInput' and add 'style="decimalPlaces:2"' behind 'default="100"'
Hope you find this little tip useful.
Regards
Stefan
|