Forum

> > CS2D > General > there have something wrong about RGB
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch there have something wrong about RGB

9 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: there have something wrong about RGB

Mora
User Off Offline

Zitieren
use
\169

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

alt Re: there have something wrong about RGB

SQ
Moderator Off Offline

Zitieren
@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")
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht