It was first described by Waclaw Sierpinski in 1916. a curve that is homeomorphic to a subspace of plane. clearWith (255) #pm.tintWith(10, 20, 100) # tint it with some sort of blue #pm.gammaWith(0.5) # lighten it up # now punch holes into it, down to 1 pixel granularity punch (pm, 0, 0, d, d) t1 = time. Python Turtle: Sierpinski Triangle Wacław Sierpiński was a Polish mathematician who did a lot for the fields of set theory, number theory, theory of functions, and topology. Python | Sierpinski Carpet The Sierpinski Carpet is a plane fractal curve i.e.

Dimension fractale: log(16) / log(5) = 1,7227. To construct it, you cut it into 9 equal-sized smaller squares and remove the central smaller square from all squares. The carpet is one generalization of the Cantor setto two dimensions; another is the Cantor dust. Voir Programmation Python / Programmation – Index Carpette de SIERPINSKI Carpette de Sierpinski (Sierpinski Carpet). Produce a graphical or ASCII-art representation of a Sierpinski carpetof order   N. For example, the Sierpinski carpet of order   3  should look like this: The use of the   #   character is not rigidly required for ASCII art. TAPIS de SIERPINSKI (carpette) Générateur 9 carrés moins le carré central = 8 de côté 1/3.

Contribute to danclark5/python-sierpinski-carpets development by creating an account on GitHub. The Sierpinski carpetis a plane fractalfirst described by Wacław Sierpińskiin 1916.

Simple Sierpinski Carpet generator. He was incredibly prolific during his lifetime, and cemented his spot in the pantheon of important mathematicians by lending his namesake to multiple mathematic phenomena.

writePNG ("sierpinski.png") t2 = time.

You keep doing it as many times as you want. This tool lets you set how many cuts to make (number of iterations) and also set the carpet's width and height.

The technique of subdividing a shape into smaller copies of itself, removing one or more copies, and continuing recursivelycan be extended to other shapes. The important requirement is the placement of whitespace and non-whitespace characters. clock pm. The Sierpinsky carpet is a self-similar plane fractal structure.

Pixmap (cs, ir) # fill image area with "white" and then optionally tint and gamma it pm.