Skip to content

Commit 18f0e4d

Browse files
author
Jorge Cuadra
committed
Update computer-science/algorithms/sierpinski_gasket.md
1 parent 7075c99 commit 18f0e4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Sierpinski gasket
22

3+
## Pseudo-code
4+
5+
1. Determine the smallest unit of a square will be. If it reaches that size, then fill it with a solid color.
6+
2. Otherwise, divide the square into four squares. Recursively draw a Spierpinski gasket on the top-left square, top-right square and bottom-right square.

0 commit comments

Comments
 (0)