bgrins / TinyColor

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

HSV is somehow miss documented #72

Closed bitplanets closed 9 years ago

bitplanets commented 9 years ago

Your values for h in hsv is 0-360 in range.

h = bound01(h, 360) * 6;

In your main doc you say

All commas, percentages, parenthesis are optional, and most input allow either 0-1, 0%-100%, or 0-n (where n is either 100, 255, or 360 depending on the value).

But right below you say:

HSL and HSV both require either 0%-100% or 0-1.

It should be

HSL and HSV both require either 0%-100% or 0-1. H can have values between 0-1 or 0-360.

bgrins commented 9 years ago

Thanks, updated the documentation