Ogeon / palette

A Rust library for linear color calculations and conversion
Apache License 2.0
749 stars 60 forks source link

Remove some more boilerplate with more macros #361

Closed Ogeon closed 10 months ago

Ogeon commented 10 months ago

The only observable effect is that equality checks for Hwb works the same way as other radial types, instead of ignoring the hue for grayscale colors. The rest should be the same.

codecov[bot] commented 10 months ago

Codecov Report

Merging #361 (733018d) into master (3370587) will increase coverage by 1.29%. Report is 13 commits behind head on master. The diff coverage is 45.04%.

@@            Coverage Diff             @@
##           master     #361      +/-   ##
==========================================
+ Coverage   78.11%   79.40%   +1.29%     
==========================================
  Files         115      117       +2     
  Lines       19812    19123     -689     
  Branches    19812    19123     -689     
==========================================
- Hits        15476    15185     -291     
+ Misses       4070     3652     -418     
- Partials      266      286      +20     
Files Coverage Δ
palette/src/hsl.rs 82.79% <ø> (+0.29%) :arrow_up:
palette/src/hsluv.rs 58.54% <ø> (+3.87%) :arrow_up:
palette/src/hsv.rs 82.25% <ø> (+1.21%) :arrow_up:
palette/src/lab.rs 85.77% <ø> (-0.78%) :arrow_down:
palette/src/lch.rs 85.39% <100.00%> (+2.66%) :arrow_up:
palette/src/lchuv.rs 82.14% <ø> (+4.06%) :arrow_up:
palette/src/lib.rs 90.79% <ø> (ø)
palette/src/luma/luma.rs 73.56% <ø> (+0.75%) :arrow_up:
palette/src/luv.rs 84.43% <ø> (-0.77%) :arrow_down:
palette/src/macros/color_difference.rs 100.00% <ø> (ø)
... and 20 more

... and 7 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codspeed-hq[bot] commented 10 months ago

CodSpeed Performance Report

Merging #361 will not alter performance

Comparing more_macros (733018d) with master (3370587)

Summary

✅ 45 untouched benchmarks

Ogeon commented 10 months ago

Huh, MSRV 1.60.0 is really starting to be old, according to the dependencies.

Ogeon commented 10 months ago

bors r+

bors[bot] commented 10 months ago

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here. For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.