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

fix: Fix background color blending by using doubles #102

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

luanpotter
Copy link
Member

@luanpotter luanpotter commented Jul 16, 2024

Before the color blending and lerping was done using 1..255 integers.
That meant that either we choose a speed that basically instantly changed the colors, or they would never change because the deltas would always round to zero.
This is a much nicer implementation anyway, using a mutable class instead of immutable records; it also uses doubles so we can do a smooth transition.

@luanpotter luanpotter marked this pull request as ready for review July 16, 2024 00:32
@luanpotter luanpotter requested a review from spydon July 16, 2024 00:33
@luanpotter luanpotter merged commit ae3d0e0 into main Aug 11, 2024
3 checks passed
@luanpotter luanpotter deleted the luan.color-mash branch August 11, 2024 14:29
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.

2 participants