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

Method SetColor

gui/panel.go:425–431  ·  view source on GitHub ↗

SetColor sets the color of the panel paddings and content area

(color *math32.Color)

Source from the content-addressed store, hash-verified

423
424// SetColor sets the color of the panel paddings and content area
425func (p *Panel) SetColor(color *math32.Color) *Panel {
426
427 p.udata.paddingsColor = math32.Color4{color.R, color.G, color.B, 1}
428 p.udata.contentColor = p.udata.paddingsColor
429 p.SetChanged(true)
430 return p
431}
432
433// SetColor4 sets the color of the panel paddings and content area
434func (p *Panel) SetColor4(color *math32.Color4) *Panel {

Callers

nothing calls this directly

Calls 1

SetChangedMethod · 0.80

Tested by

no test coverage detected