JuliaGraphics / ColorTypes.jl

Basic color definitions and traits
Other
77 stars 35 forks source link

Add error hints for color arithmetic #249

Closed kimikage closed 3 years ago

kimikage commented 3 years ago

This PR was separated from PR #186 via PR #243. I changed the condition to suggest new multiplication operators to exclude real scaling cases like RGB(1,1,1) * 0.3 in this PR.

codecov[bot] commented 3 years ago

Codecov Report

Merging #249 (11147d7) into master (8fc7034) will increase coverage by 0.09%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #249      +/-   ##
==========================================
+ Coverage   82.25%   82.35%   +0.09%     
==========================================
  Files           8        8              
  Lines         727      731       +4     
==========================================
+ Hits          598      602       +4     
  Misses        129      129              
Impacted Files Coverage Δ
src/error_hints.jl 90.00% <100.00%> (+6.66%) :arrow_up:

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...11147d7. Read the comment docs.