Skip to content

Commit b963ca6

Browse files
committed
Adjust color thresholds
1 parent 795d33f commit b963ca6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

munsell.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ func matchColorFromHSL(hsl HSLComponents) Color {
164164
} else {
165165
return Orange
166166
}
167-
} else if h >= 36 && h <= 59 {
167+
} else if h >= 36 && h <= 64 {
168168
if s < 90 {
169169
return Yellow // ("Brown")
170170
} else {
171171
return Yellow
172172
}
173-
} else if h >= 60 && h <= 165 {
173+
} else if h >= 65 && h <= 165 {
174174
return Green
175175
} else if h >= 166 && h <= 199 {
176176
return LightBlue

munsell_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func TestPremierLeague_ArsenalAlt(t *testing.T) {
124124
}
125125

126126
func TestPremierLeague_Aston(t *testing.T) {
127-
testPremierLeague(t, "#7A003C", munsell.Purple) // FIXME:
127+
testPremierLeague(t, "#7A003C", munsell.Purple)
128128
}
129129

130130
func TestPremierLeague_AstonAlt(t *testing.T) {
@@ -148,7 +148,7 @@ func TestPremierLeague_BrightonAlt(t *testing.T) {
148148
}
149149

150150
func TestPremierLeague_Burnley(t *testing.T) {
151-
testPremierLeague(t, "#53162F", munsell.Purple) // FIXME:
151+
testPremierLeague(t, "#53162F", munsell.Purple)
152152
}
153153

154154
func TestPremierLeague_BurnleyAlt(t *testing.T) {
@@ -260,7 +260,7 @@ func TestPremierLeague_WatfordAlt(t *testing.T) {
260260
}
261261

262262
func TestPremierLeague_WestHam(t *testing.T) {
263-
testPremierLeague(t, "#7A003C", munsell.Purple) // FIXME:
263+
testPremierLeague(t, "#7A003C", munsell.Purple)
264264
}
265265

266266
func TestPremierLeague_WestHamAlt(t *testing.T) {

0 commit comments

Comments
 (0)