void addScreen () { blend(grime, 0, 0, width, height, 0, 0, width, height, SOFT_LIGHT); } void makeFace () { smooth(); noFill(); strokeWeight(3); stroke(10,180,40); for (int n=0; n < num; n++) { p[n].getCoord(n); p[n].setVert(n); } drawCurrentPos(); } void makeBackground () { loadPixels(); int[] tmpPxl = new int[width*height]; for (int ln = 0; ln < width*height; ln += width) { for (int p = 0; p < width; p ++) { int ind = p + ln; color s = color(0,random(20,50),0); tmpPxl[ind] = s; } if (ln%300 != 0) { for (int p = 0; p < width; p ++) { int ind = p + ln; color s = color(0,random(0,40),0); tmpPxl[ind] = s; } } } int yct = 0; for (int n = 0; n < width*height; n++) { pixels[n] = tmpPxl[n]; } updatePixels(); }