The Sierpinski carpet is a fractal that is defined as follows: The construction of the Sierpinski carpet

Question:

The Sierpinski carpet is a fractal that is defined as follows: The construction of the Sierpinski carpet begins with a square. The square is cut into nine congruent subsquares in a 3-by-3 grid, with the central subsquare removed. The same process is then applied recursively to the eight other subsquares. Figure 12.14 shows the first few iterations of the carpet.

Write a program to draw the carpet on a DrawingPanel recursively.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: