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

Colors - improvements to constructor, setters, and operators/blending. #639

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

stephenhensley
Copy link
Collaborator

Improves the Color API in a few ways:

  • Adds constructors for default off/black, as well as initial color
  • Adds Setters for individual color channels
  • Adds color addition via + operator (saturating)
  • Adds color scaling via * operator
  • Adds a color Blend function that does a linear crossfade between two colors.

Copy link

Test Results

150 tests  ±0   150 ✅ ±0   0s ⏱️ ±0s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 91c0bbb. ± Comparison against base commit 5112a86.

@stephenhensley stephenhensley merged commit bbfa87c into master Sep 20, 2024
8 checks passed
@stephenhensley stephenhensley deleted the color-tweaks branch September 20, 2024 18:01
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