This commit is contained in:
2023-01-27 00:04:42 -08:00
parent 09b897d3c0
commit 51b3602a41

View File

@@ -39,7 +39,7 @@ func ColorForFrequency(freq, min, max int) sc.SimpleColor {
return sc.SimpleColor(0)
}
spread := max - min
if spread < len(colorScheme)+1 {
if spread < len(colorScheme)-1 {
return colorScheme[freq-min+1]
}
interval := float64(spread) / float64(len(colorScheme))