0 Members and 3 Guests are viewing this topic.
void drawSpritePart(unsigned short *source, int _x, int _y, Rect part){ int x, y = _y, w = part.w + _x, h = part.h + _y, z = part.x, t = part.y; for(y = _y; y < h; y++, t++) { for(x = _x, z = part.x; x < w; x++, z++) { if(getPixel(source, z, t) != source[2]) setPixel(x, y, getPixel(source, z, t)); } }}
Seems interesting, although from the name, at first I thought this was a math graph utility.