float rnd(float x) { return x + random(-20, 20); }
void brushRect(int x, int y, int w, int h) { for (int i = 0; i < h; ++i) { float r = random(3); strokeWeight(r); float downpull = random(h / 4); float shudder = random(-2, 2); line(x + shudder, y + i, x + w - shudder, y + i + downpull); } }
void cantorSet(int y, int offX, int wid, color col) { if ((y > height - 10) || (wid < 1)) return;
stroke(col); brushRect(offX, y, wid, setHeight); //fill(col); //rect(offX, y, wid, setHeight);
Devious Comments