I keep struggling with this. Some days I'm successful only for it to break moments later...
I want to set the text color on a Geyser label using rgb format in such a way that the rgb values are stored in variables so I can easily change them.
Here's my attempt to do so in the stylesheet to no avail:
redv = 255
greenv = 0
bluev = 0
mylabel = Geyser.Label:new({
name="mylabel",
x=0,y=0,
width="10%",height="10%",
})
mylabel:setStyleSheet([[
color: rgb("..redv..","..greenv..","..bluev..");
]])
mylabel:echo("hello world")
Here's my attempt to do so with the decho() function. Didn't work either.
I've heard from some that this function works and from others that it does not.
mylabel:decho("<"..redv..","..greenv..","..bluev..">Hello World")