View Single Post
  #1  
Old 02-18-2006, 04:19 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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);
Reply With Quote