class Label { float _width; float _height; int _x; int _y; float _alpha; PImage _image; Pix[] pixels_arr; int npixels; int _count; float MARGIN_W = 50; float MARGIN_H = 50; public Label(PImage $textImage){ _image = $textImage; _image.format = ARGB; _width = $textImage.width * 1.0f; _height = $textImage.height * 1.0f; npixels = $textImage.width * $textImage.height; //for(int i=0; i>>24 & 0xff) <<24 | BGCOLOR & 0x00ffffff; _x = round((width*1.0f - _width) * .5f); _y = round((height*1.0f - _height) * .5f); pixels_arr = new Pix[npixels]; for(int i=0; i>>24 & 0xff));*/ return $pixels[((int)$y*$width)+(int)$x]; } void drawMe(int[] $pixels) { if(_count<30){ _count++; for(int i=0; i