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

feat: add flexible integer conversion #68

Merged
merged 4 commits into from
Jul 24, 2024
Merged

feat: add flexible integer conversion #68

merged 4 commits into from
Jul 24, 2024

Conversation

tlambert03
Copy link
Member

@tlambert03 tlambert03 commented Jul 24, 2024

closes #43 by adding from_int and to_int methods to Color, supporting any form of bit-shifted integer-to-color conversion

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.87%. Comparing base (ebd1de4) to head (ebc33ef).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #68   +/-   ##
=======================================
  Coverage   96.87%   96.87%           
=======================================
  Files         155      155           
  Lines        1981     2017   +36     
=======================================
+ Hits         1919     1954   +35     
- Misses         62       63    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tlambert03 tlambert03 enabled auto-merge (squash) July 24, 2024 13:21
@tlambert03 tlambert03 added the enhancement New feature or request label Jul 24, 2024
@tlambert03 tlambert03 disabled auto-merge July 24, 2024 13:27
@tlambert03 tlambert03 merged commit 21a8d43 into main Jul 24, 2024
15 checks passed
@tlambert03 tlambert03 deleted the int-2-color branch July 24, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add various 24 and 32 bit color integer conversions to Color
1 participant