Hi,
when I read one pixel of a sprite with this system:
the var pix return this value: -5462343
I have to convert in Hex (Exmple: #000301), it's possible?
when I read one pixel of a sprite with this system:
Code (glbasic) Select
LOADSPRITEMEM("1.png", w2%, h2%, pixels[])
FOREACH pix IN pixels[]
FOR x% = 0 TO value_palette
IF pix = memo[x][0]
pix = memo[x][1]
BREAK
ENDIF
NEXT
NEXT
the var pix return this value: -5462343
I have to convert in Hex (Exmple: #000301), it's possible?