bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript

Home Page:https://bgrins.github.io/TinyColor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H in HSV does not actually support values 0-1

sdhull opened this issue · comments

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)"