diff --git a/common/common.go b/common/common.go index 14b4c0d..35e10fa 100644 --- a/common/common.go +++ b/common/common.go @@ -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))