-
Notifications
You must be signed in to change notification settings - Fork 36
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
[RFC] (Re-)define one
for Colorant
#243
Conversation
Codecov Report
@@ Coverage Diff @@
## master #243 +/- ##
==========================================
+ Coverage 82.62% 82.73% +0.10%
==========================================
Files 8 8
Lines 754 753 -1
==========================================
Hits 623 623
+ Misses 131 130 -1
Continue to review full report at Codecov.
|
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.
No objections at all!
Remind me, what's the plan on ColorVectorSpaces? Will there be any zero
/one
/oneunit
methods there? I guess no?
I'm not sure I fully understand what @timholy wants to do with ColorVectorSpace v0.9. For now, ColorVectorSpace is allowing breaking changes to remain at v0.9, rather than "skipping" to ColorVectorSpace v0.10. (Incidentally, I'd rather there be no gaps than to strictly adhere to the SemVer principles.) The options can be roughly divided into two approaches. One is that ColorTypes v0.11 will not include this PR, and only define The other is to include this PR and PR #177 in ColorTypes v0.11 and break the definition of |
In the meantime, I will make some trivial PRs for ColorVectorSpace. |
ImageCore v0.9.0, which depends on ColorVectorSpace v0.9, has been released. |
I've updated the plan: #231. I'll merge PR |
Ah, the error hints for color arithmetic may be v0.11 material. I'm going to split the PR further. |
Since error hints don't change the behavior so it's okay to ship it in v0.12 just to save some effort; I'll just treat this laziness as "whoever wants the new fancy feature, use the new version." |
I have submitted a separated PR #249. I am going to remove duplicate changes when I apply |
This defines `one` as a real (i.e. dimensionless) number `1`.
PR JuliaGraphics#243 and JuliaGraphics#177 had already fixed the `ones` throwing an exception. This updates the test.
This defines
one
as a real (i.e. dimensionless) number1
.I am not convinced that this is the best way, but I think this is a reasonable option.
Since this does not support
ones(ARGB, ...)
and so on, this may requires PR #177as a part of v0.11.0Closes #235, Closes #137