INNER CODE UNIT · Go

func

jesseduffield/lazygit · cmd/author_colors_repo/main.go:36

func (self extreme) String() string {
	if self == lowest {
		return "min"
	}
	return "max"
}

func (self extreme) matches(fraction float64) bool {
	if self == lowest {
		return fraction < 0.01
	}
	return fraction >= 0.99
}

const (
	numHues = 12

	// Small enough that the windows of neighbouring hues don't overlap

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…