Posts: 157
Threads: 38
Joined: May 2012
Reputation:
0
I Need a function in pawn that converts RGBA to hex but i can't create one i have no idea how to do it
Posts: 157
Threads: 38
Joined: May 2012
Reputation:
0
first of all thanx
but can u say to me how to use the hex then ??
cuz what i see returns values to each red green blue not a hex like 0xFF0000 or something
Posts: 873
Threads: 5
Joined: Apr 2012
Reputation:
0
printf("%x", rgb2hex(255, 0, 0));
what does it returns?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
A hex value is really an integer anyways but ya you can use the %x specifier to get the hex value in a string.