Ogeon / palette

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

Fix angle conversion from `f32` to `u8` #386

Closed Ogeon closed 5 months ago

Ogeon commented 5 months ago

This fixes an issue that made angles convert to 0u8 instead of their expected u8 values.

Closed Issues

codspeed-hq[bot] commented 5 months ago

CodSpeed Performance Report

Merging #386 will not alter performance

Comparing issue_385_angle_f32_to_u8 (9ed7fef) with master (bbd6d4b)

Summary

✅ 45 untouched benchmarks

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.01%. Comparing base (bbd6d4b) to head (9ed7fef).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #386 +/- ## ========================================== + Coverage 81.94% 82.01% +0.06% ========================================== Files 115 115 Lines 18277 18287 +10 Branches 18277 18287 +10 ========================================== + Hits 14978 14998 +20 + Misses 3141 3131 -10 Partials 158 158 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.