facelessuser / coloraide

A library to aid in using colors
https://facelessuser.github.io/coloraide
MIT License
194 stars 12 forks source link

Don't force clipping of user input for chroma #386

Closed facelessuser closed 10 months ago

facelessuser commented 10 months ago

Resolves #385

facelessuser commented 10 months ago

We've cherry picked various changes from this PR into their own commits. That leaves us just with the chroma changes. The title has been updated accordingly. The achromatic logic to support negative chroma has been cherry picked, but the actual allowing the spaces to have negative chroma is all contained in this PR, should we choose to do so.

facelessuser commented 10 months ago

Cherry picked the logic that allows negative chroma onto main. Now this PR only enables support for negative chroma and adds tests. Having the logic in place if chroma is not clamped seemed to be reasonable.

facelessuser commented 10 months ago

@gir-bot lgtm