Skip to content

Commit

Permalink
gradient bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bart committed Feb 15, 2025
1 parent ff55392 commit 198b595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modes/three_strikes_battle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ namespace
float lerp_time;
lerp_time = float(current_lives - 1)/float(starting_lives);
int lerp_index = floor(lerp_time*gradientLength);
lerp_index = lerp_index % (gradientLength + 2);
lerp_time = lerp_time * gradientLength - lerp_index;
lerp_index = lerp_index % (gradientLength + 2);

auto channelBrightness = [lerp_time, lerp_index](const int* gradient)
{
Expand Down

0 comments on commit 198b595

Please sign in to comment.