View Single Post
  #4  
Old 08-24-2006, 01:27 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

you can put the RGB hex values directly into mysql with 0x:

0xAARRGGBB
AA = alpha (transparency)
RR = reg
GG = green
BB = blue
in hex.

eg:
UPDATE items SET color=0xFFFF0000 WHERE id=1001;
should turn the cloth cap red.

I think you want to have an alpha of FF for solid colors (00 is completely transparent I think)... not sure though.

somebody should put this on the wiki.
Reply With Quote