New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Oklab and Oklch #533
Add Oklab and Oklch #533
Conversation
The failure of |
Modified description to more clearly separate potential improvements from actual contents. I am however not currently planning to add the former, so as far as I am concerned this pull request is complete. (Although someone should maybe verify the |
This would be a great addition (I found out about OKxxx in a recent discussion). @eprovst, if maintainers are not responding, I wonder if you could just put this in a separate package, called ColorsOK.jl or something, depending on ColorTypes.jl and Colors.jl. |
from a Slack thread: https://julialang.slack.com/archives/CB1R90P8R/p1715468813588759
Of course, it will do not interfere with others doing it properly. |
That seems like a reasonable order of actions. If there is anything I should still change, please let me know! |
I have made a fix so that the CI tests pass, so please
We will revisit it at the release timing of ColorTypes v0.12 or Colors v0.13, whichever comes first. Once this PR is merged, I would like to add the charts to the document and visually verify that the conversion works. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #533 +/- ##
==========================================
+ Coverage 98.82% 98.91% +0.08%
==========================================
Files 10 10
Lines 1281 1289 +8
==========================================
+ Hits 1266 1275 +9
+ Misses 15 14 -1 ☔ View full report in Codecov by Sentry. |
|
I already took the liberty to add the charts, which seem alright. Tests also seem to pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for responding to some of the modifications.
There is no explicit policy about the tolerance here, but it would be better to be able to notice unintended changes more easily.
I also confirmed that the charts are displayed as it seems.
Personally, I think it would be better to group charts by (Lab
, Luv
, Oklab
) and (LCHab
, LCHuv
, Oklch
) for easier comparison (in PC display).
However, that is a matter of preference and can be changed separately from this PR.
I made the tests a bit stricter. I'll leave organization of the documentation to your discretion 🙂 |
I am going to merge this. |
Similar to pull request #518, using the terminology of CSS instead and somewhat more complete. In the sense that there are (some) tests and all conversions seem to dispatch correctly.
Potential further work not in this pull request:
I do get a fail of
isempty(detect_ambiguities(Colors))
, which I do not completely understand, so help there would be appreciated.Failing CI is related to the fact that ColorTypes v0.12 is not released.