SetColor sets the text color. Alpha is set to 1 (opaque).
(color *math32.Color)
| 110 | // SetColor sets the text color. |
| 111 | // Alpha is set to 1 (opaque). |
| 112 | func (l *Label) SetColor(color *math32.Color) *Label { |
| 113 | |
| 114 | l.style.FgColor.FromColor(color, 1.0) |
| 115 | l.SetText(l.text) |
| 116 | return l |
| 117 | } |
| 118 | |
| 119 | // SetColor4 sets the text color. |
| 120 | func (l *Label) SetColor4(color4 *math32.Color4) *Label { |
no test coverage detected