Skip to content

Add 0 check before dividing color by alpha#7478

Merged
davepagurek merged 1 commit into
dev-2.0from
fix/nan-colors
Jan 18, 2025
Merged

Add 0 check before dividing color by alpha#7478
davepagurek merged 1 commit into
dev-2.0from
fix/nan-colors

Conversation

@davepagurek
Copy link
Copy Markdown
Contributor

Resolves #7477

Changes:

  • Checks if alpha is > 0 before dividing by alpha to avoid NaNs

Screenshots of the change:

The test sketch in the issue now looks like this:
image

@davepagurek davepagurek merged commit ad777f2 into dev-2.0 Jan 18, 2025
@davepagurek davepagurek deleted the fix/nan-colors branch January 18, 2025 16:45
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