MCPcopy Create free account
hub / github.com/git-bug/git-bug / Term256

Method Term256

entities/common/label.go:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (lc LabelColor) Term256() Term256 {
74 red := Term256(lc.R) * 6 / 256
75 green := Term256(lc.G) * 6 / 256
76 blue := Term256(lc.B) * 6 / 256
77
78 return red*36 + green*6 + blue + 16
79}
80
81type Term256 int
82

Callers 4

bugsDefaultFormatterFunction · 0.80
renderMethod · 0.80
layoutMethod · 0.80
renderSidebarMethod · 0.80

Calls 1

Term256TypeAlias · 0.85

Tested by

no test coverage detected