bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.05k stars 438 forks source link

H in HSV does not actually support values 0-1 #179

Open sdhull opened 6 years ago

sdhull commented 6 years ago

Easy to repro on RunKit

var tinycolor = require("tinycolor2")
var color = tinycolor({h: 0.27, s: 1, v: 1});
color.toString('rgb')

expected return value: "rgb(85, 255, 0)" (same as for h = 100 in the 0-360 space) actual return value: "rgb(255, 1, 0)"