void setup() { size(832, 678); println("setFrames(24,11);"); for(int f = 240; f <= 250; f++){ //frames are 240.png to 250.png drawC64Frame(f); } } void drawC64Frame(int frame) { //many magic numbers to get pixel reader in right place //from Sprite Magic... int left = 125, top = 230; int xsz = 15, ysz = 16; PImage shot = loadImage(frame + ".png"); image(shot, 0, 0); loadPixels(); println("doFrame("); for (int yc = 0; yc < 11; yc++) { print("\""); for (int xc = 0; xc < 24; xc++) { int x = left+(xc * xsz); int y = top+(yc*ysz); //rect(x,y,1,1); int pix = pixels[x + (y * width)]; print((pix == -1)?"#":"_"); } println("\"+"); } println("\"\");\n"); updatePixels(); }