You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to change the text color. The following function does it, but it has to be placed in etc.go, because the fields are not public. `The push/pop functions have the same problem. Is there a better way to do it, or could this routine be included in the library?
func SetTextColor(ctx *Context, color Color) {
var style *Style
style = ctx.Style()
text := &style.text
text.color.r = color.r
text.color.g = color.g
text.color.b = color.b
}
``
The text was updated successfully, but these errors were encountered:
@jkvatne there is a lot of cases of that, I think we need to place everything in etc.
The design of Nuklear is that there is a lot of private field manipulation involved.
I need to change the text color. The following function does it, but it has to be placed in etc.go, because the fields are not public. `The push/pop functions have the same problem. Is there a better way to do it, or could this routine be included in the library?
The text was updated successfully, but these errors were encountered: