Skip to content

Instantly share code, notes, and snippets.

float[][] noiseMap;
ArrayList<Brush> brushes;
PImage imgMap;
int num = 500, min=2, max=50;
float noiseIncr = .01, drain=.05, brushSize;
void setup() {
imgMap = loadImage("http://everythingforpeople.files.wordpress.com/2011/11/7098-natalie-portman-black-and-white-earrings-closeup-face.jpg");
imgMap.resize(round(imgMap.width*0.5),round(imgMap.height*0.5));