MCPcopy
hub / github.com/g3n/engine / SetColor4

Method SetColor4

gui/label.go:120–125  ·  view source on GitHub ↗

SetColor4 sets the text color.

(color4 *math32.Color4)

Source from the content-addressed store, hash-verified

118
119// SetColor4 sets the text color.
120func (l *Label) SetColor4(color4 *math32.Color4) *Label {
121
122 l.style.FgColor = *color4
123 l.SetText(l.text)
124 return l
125}
126
127// Color returns the text color.
128func (l *Label) Color() math32.Color4 {

Callers 15

SetScaleXMethod · 0.95
SetScaleYMethod · 0.95
buildLabelFunction · 0.95
applyStyleMethod · 0.45
applyStyleMethod · 0.45
applyStyleMethod · 0.45
applyStyleMethod · 0.45
applyStyleMethod · 0.45
applyStyleMethod · 0.45
SetBgColorMethod · 0.45
SetBgColor4Method · 0.45
applyResizerStyleMethod · 0.45

Calls 1

SetTextMethod · 0.95

Tested by

no test coverage detected