Skip to content

Commit

Permalink
Fix cutover calculation from yellow to black for color schema
Browse files Browse the repository at this point in the history
Issue: #4306
  • Loading branch information
buchen committed Nov 30, 2024
1 parent 07f16c5 commit 949fb19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ DoubleFunction<Color> buildColorFunction(ResourceManager resourceManager)
var p = normalizePerformance(performance);

// cutover from yellow to black at +0.05 performance
var cutover = (MAX_PERFORMANCE + 0.05f) / 2f * MAX_PERFORMANCE;
var cutover = (MAX_PERFORMANCE + 0.05f) / (2f * MAX_PERFORMANCE);

return new ColorGradient(//
new ColorPoint(Colors.theme().defaultBackground(), 0), //
Expand Down

0 comments on commit 949fb19

Please sign in to comment.