Skip to content

Commit

Permalink
Slightly improve color mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Aug 27, 2024
1 parent f14dd57 commit d44ab8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Color adjustColorBrightness(Color input, int brightness) {
// .build()
// );

int shift = (brightness - 127) / 3;
int shift = (brightness - 127 - 40) / 2;
return new Color(
Math.min(255, Math.max(0, input.getRed() + shift)),
Math.min(255, Math.max(0, input.getGreen() + shift)),
Expand Down

0 comments on commit d44ab8f

Please sign in to comment.