Skip to content

Commit

Permalink
adjust brightness threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Jan 9, 2025
1 parent 41d072e commit 30a3355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion badge-maker/lib/badge-renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function capitalize(s) {
}

function colorsForBackground(color) {
const brightnessThreshold = 0.69
const brightnessThreshold = 0.65
if (brightness(color) <= brightnessThreshold) {
return { textColor: '#fff', shadowColor: '#010101' }
} else {
Expand Down

0 comments on commit 30a3355

Please sign in to comment.