Isaac Muse
Isaac Muse
It looks like if we want to have floating point versions, the standard form will need to apply the shifted chroma components that are scaled to the bit depth with...
Thinking about this more, we may simply just have YPbPr variants which are floating point ranges and YCbCr that are snapped to integer ranges.
Doing some tests, it became apparent that in the digital form, that converting back to RGB, especially with lower bit depth, that you can be placed out of gamut. The...
I think this is a pretty good idea.
Yeah, I'm not a big fan of this logic to turn `a` and `b` to undefined if hue is undefined. An achromatic color with an undefined hue should _not_ make...
Thinking about this more, calling `toBase` directly is not part of the public API, and the user shouldn't be doing this. You can also pass null into various color space...
As another example, this also deviates from `to`: ```js > Color.spaces.oklch.toBase([null, 0, 0]) [ null, 0, 0 ] > new Color("oklch(none 0 0)").to("oklab").coords [ 0, 0, 0 ] ``` It...
So you want an undefined hue to also affect the chroma channel? I don't agree with this behavior. I'll elaborate. Keep in mind with these color libraries that an achromatic...
I can see your argument though, as you are referencing the CSS spec: > Conversion to the rectangular form is trivial: > > 1. If H is missing, a =...
I do think the CSS logic is flawed, but maybe there are reasons. A square is a rectangle, but a rectangle isn't always a square, and I feel the same...