The construction of the Sierpinski carpet begins with a square.
The Sierpinski carpet can also be created by iterating every pixel in a square and using the following algorithm to decide if the pixel is filled.