Forum

> > CS2D > General > there have something wrong about RGB
Forums overviewCS2D overviewGeneral overviewLog in to reply

English there have something wrong about RGB

9 replies
To the start Previous 1 Next To the start

old Re: there have something wrong about RGB

Mora
User Off Offline

Quote
use
\169

1
msg("\169255000000Red \169000255000Green \169000000255Blue")
or
example table colours >

old Re: there have something wrong about RGB

SQ
Moderator Off Offline

Quote
@user Masea: It was a rhetorical question. It is.
1
2
a = {["a"] = 5}
print(a.a)
Even a global valuable is under _G global table.
1
2
3
myvar = "me"
print(_G.myvar)
print(_G["myvar"])
It's really cool thing and can be used to call functions as a string.
For example:
1
2
3
myfunc = print
myfunc_name = "myfunc"
_G[myfunc_name]("sample text")
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview