Drawing the Sierpinski Carpet in JavaScript