-
Notifications
You must be signed in to change notification settings - Fork 23
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
ColorType.gray(x::Real)
is no longer needed
#124
Comments
If I read your words correctly, you suggest to # in ColorTypes
- ColorTypes.gray(x::Number) = x
+ ColorTypes.gray(x::Real) = x and by doing this, the same method should be removed here in ColorVectorSpace to avoid redefinition, right? That sounds good to me. |
Since |
I hope this will be fixed, along with other fixes. However, if needed, I will submit a standalone PR. |
The PR #131 is going to get rid of the |
When I saw PR #137, I thought @timholy was going to make some changes in ColorTypes.jl. However, I don't understand the true intent. |
This is a separate issue, but I think the following should be in ColorTypes.jl. ColorVectorSpace.jl/src/ColorVectorSpace.jl Line 310 in 85b8759
|
gray(x::Fractional)
was added in ColorTypes.jl v0.2 (JuliaGraphics/ColorTypes.jl@0b071ed), and it was modified togray(x::Number)
in ColorTypes.jl v0.2.12 (JuliaGraphics/ColorTypes.jl@988de55).I think
Number
is too loose, but in any case the following is unnecessary:ColorVectorSpace.jl/src/ColorVectorSpace.jl
Line 73 in f2baf1d
The text was updated successfully, but these errors were encountered: