MCPcopy
hub / github.com/mum4k/termdash / ContactColor

Function ContactColor

widgets/radar/options.go:234–240  ·  view source on GitHub ↗

ContactColor sets the color used to render contact blip runes. r, g, b are RGB24 components in the range [0, 255]. Defaults to red (255, 50, 50).

(r, g, b int)

Source from the content-addressed store, hash-verified

232// r, g, b are RGB24 components in the range [0, 255].
233// Defaults to red (255, 50, 50).
234func ContactColor(r, g, b int) Option {
235 return option(func(o *options) {
236 o.contactR = r
237 o.contactG = g
238 o.contactB = b
239 })
240}
241
242// DefaultContactChar is the default rune used to mark contact positions.
243const DefaultContactChar = '◆'

Callers 3

newVisualizeTabFunction · 0.92
newExplorerWidgetsFunction · 0.92
mainFunction · 0.92

Calls 1

optionFuncType · 0.70

Tested by

no test coverage detected