Skip to content
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

Improve compN for non-parametric ColorAlpha types #245

Merged
merged 1 commit into from
May 14, 2021

Conversation

kimikage
Copy link
Collaborator

@kimikage kimikage commented Apr 8, 2021

Since only AGray32 and ARGB32 are defined as non-parametric TransparentColor types, I did not notice this problem, but it would be better to specialize compN for ColorAlpha as well as AlphaColor.

This is not an urgent issue, since it can be solved by overloading compN by users or packages which define custom color types. Therefore, I will make this a part of v0.12 instead of v0.11, even though this is a non-breaking change as long as alpha(c) works.

@kimikage kimikage changed the title Improve compN for non-parametric AlphaColor types Improve compN for non-parametric ColorAlpha types Apr 8, 2021
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #245 (1cbe7a7) into master (8fc7034) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 1cbe7a7 differs from pull request most recent head eedc2d3. Consider uploading reports for the commit eedc2d3 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
+ Coverage   82.25%   82.28%   +0.02%     
==========================================
  Files           8        8              
  Lines         727      728       +1     
==========================================
+ Hits          598      599       +1     
  Misses        129      129              
Impacted Files Coverage Δ
src/traits.jl 98.83% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fc7034...eedc2d3. Read the comment docs.

@kimikage kimikage added this to the 0.12 milestone Apr 8, 2021
@kimikage kimikage mentioned this pull request May 6, 2021
19 tasks
@kimikage kimikage marked this pull request as ready for review May 14, 2021 15:18
@kimikage
Copy link
Collaborator Author

It's been half a month since the release of v0.11.0, so I'd like to start the v0.12 series.

@kimikage kimikage merged commit 55b720c into JuliaGraphics:master May 14, 2021
@kimikage kimikage deleted the comp_ca branch May 14, 2021 15:26
johnnychen94 added a commit that referenced this pull request May 15, 2022
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 this pull request may close these issues.

1 participant