Skip to content

Commit

Permalink
Adjust color thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalissaac committed Apr 18, 2022
1 parent 795d33f commit b963ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions munsell.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ func matchColorFromHSL(hsl HSLComponents) Color {
} else {
return Orange
}
} else if h >= 36 && h <= 59 {
} else if h >= 36 && h <= 64 {
if s < 90 {
return Yellow // ("Brown")
} else {
return Yellow
}
} else if h >= 60 && h <= 165 {
} else if h >= 65 && h <= 165 {
return Green
} else if h >= 166 && h <= 199 {
return LightBlue
Expand Down
6 changes: 3 additions & 3 deletions munsell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestPremierLeague_ArsenalAlt(t *testing.T) {
}

func TestPremierLeague_Aston(t *testing.T) {
testPremierLeague(t, "#7A003C", munsell.Purple) // FIXME:
testPremierLeague(t, "#7A003C", munsell.Purple)
}

func TestPremierLeague_AstonAlt(t *testing.T) {
Expand All @@ -148,7 +148,7 @@ func TestPremierLeague_BrightonAlt(t *testing.T) {
}

func TestPremierLeague_Burnley(t *testing.T) {
testPremierLeague(t, "#53162F", munsell.Purple) // FIXME:
testPremierLeague(t, "#53162F", munsell.Purple)
}

func TestPremierLeague_BurnleyAlt(t *testing.T) {
Expand Down Expand Up @@ -260,7 +260,7 @@ func TestPremierLeague_WatfordAlt(t *testing.T) {
}

func TestPremierLeague_WestHam(t *testing.T) {
testPremierLeague(t, "#7A003C", munsell.Purple) // FIXME:
testPremierLeague(t, "#7A003C", munsell.Purple)
}

func TestPremierLeague_WestHamAlt(t *testing.T) {
Expand Down

0 comments on commit b963ca6

Please sign in to comment.