Skip to content

Non-parametric colors fail in addition and subtraction #133

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

Closed
kimikage opened this issue Aug 16, 2020 · 0 comments · Fixed by #136
Closed

Non-parametric colors fail in addition and subtraction #133

kimikage opened this issue Aug 16, 2020 · 0 comments · Fixed by #136

Comments

@kimikage
Copy link
Collaborator

This problem is noted in #56, but the addition and subtraction have not been fixed.

julia> RGB{N0f8}(1, 0, 0) + RGB{N0f8}(0, 0, 1)
RGB{N0f8}(1.0,0.0,1.0)

julia> RGB24(1, 0, 0) + RGB24(0, 0, 1)
ERROR: TypeError: in Type{...} expression, expected UnionAll, got Type{RGB24}

julia> Gray{N0f8}(1) - Gray{N0f8}(1)
Gray{N0f8}(0.0)

julia> Gray24(1) - Gray24(1)
ERROR: TypeError: in Type{...} expression, expected UnionAll, got Type{Gray24}
timholy added a commit that referenced this issue Sep 11, 2020
* Fix arithmetic on nonparametrics (fixes #133)

* Small cleanup from histrange deprecation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant