
02-18-2006, 04:19 AM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
Grabbing colors from images
|
just like to grab a pixel. Ex, for if you rescript something that uses letters.png. This would come in useful for letting users customize their GUI rather than the server forcing something onto them.
this.rgb = getimgcolor(image,imgx,imgy);
showpoly(200,{x1,y1,....});
changeimgcolors(200,this.rgb[0]/255,this.rgb[1]/255,this.rgb[2]/255); |
|
|
|