Skip to content

Instantly share code, notes, and snippets.

View michael-lynch's full-sized avatar
💭
I may be slow to respond.

Michael Lynch michael-lynch

💭
I may be slow to respond.
View GitHub Profile
@eyecatchup
eyecatchup / hsvToRgb.js
Last active March 7, 2021 23:32
HSV to RGB color conversion - JavaScript-Port from the excellent java algorithm by Eugene Vishnevsky at http://www.cs.rit.edu/~ncs/color/t_convert.html
/**
* 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) {