Don't round values returned by colour query functions.#2062
Don't round values returned by colour query functions.#2062lukeapage merged 1 commit intoless:masterfrom seven-phases-max:not-rounded-color-queries
Conversation
|
I also found that
Update: i found that the hsv value should be |
|
@bassjobsen HSV of In other words: |
Don't round values returned by colour query functions.
|
@seven-phases-max, thanks for your clear explanation. In that case at least the docs don't seem to be correct. http://lesscss.org/functions/#color-channel-red:, returns an integer In the code for instance hsvhue does a color.toHSV() first. For red() the color object is not "cast" to a rgb object which only can contain integers. |
|
Yes, the documentation may be not always up-to-date.
Color object is an RGB object and it may contain non-integer values actually: |
Per #2060.
Don't round values returned by: