class AnimFlake { PImage _image; float _finalrotation; PImage[] _frames; int NUMFRAMES = 25; public AnimFlake(PImage $_image, float $_finalrotation) { _frames = new PImage[NUMFRAMES]; _image = $_image; _image.format = ARGB; _image.mask(_image); _finalrotation = $_finalrotation; int $w = _image.width; int $h = _image.height; int $np = $w * $h; int $half = (int) ($w * .5f); PImage b_img = new PImage(_image.width,_image.height); b_img.format = ARGB; for(int i=0; i<$np; i++) b_img.pixels[i]=0xffffff; PGraphics g2=new PGraphics3(_image.width,_image.height); float _rotation = 0; float _dr = _finalrotation / NUMFRAMES; for(int j=0; j