Recursively smaller drawing | | Code
The key idea is a recursive drawing function that draws on a smaller scale than in the previous recursion level:
function drawSomething() {
if (too_small()) { return; }
push();
scale(0.4);
drawSomething();
pop();
}