Can you please help me? I have this:
local mycolor = 0x0000ff
how can I put it in a string without it being converted to 255? I would like to get 0x0000ff or at least 0000ff. I tried:
print(tostring(mycolor)) -- 255
print(mycolor) -- 255
print(string.format("%q", mycolor)) -- "255"
Thank you.
Comments
Likes: MoKaLux
string.format("%x",0xffffff)
which is the same but written differently.
Likes: MoKaLux, antix
Fragmenter - animated loop machine and IKONOMIKON - the memory game
It basically means this:
Likes: MoKaLux
Likes: MoKaLux