This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HSV to RGB color conversion | |
* | |
* H runs from 0 to 360 degrees | |
* S and V run from 0 to 100 | |
* | |
* Ported from the excellent java algorithm by Eugene Vishnevsky at: | |
* http://www.cs.rit.edu/~ncs/color/t_convert.html | |
*/ | |
function hsvToRgb(h, s, v) { |