Tag Archives: Sierpinski gasket

Draw a Sierpinski carpet in C#

This example shows how to draw a Sierpinski carpet, a type of fractal known as a gasket. The posts Draw a Sierpinski gasket in C# and Draw a Sierpinski triangle in C# shows two ways to draw a different kind … Continue reading

Posted in algorithms, drawing, fractals, graphics, mathematics | Tagged , , , , , , , , , , , , | Comments Off on Draw a Sierpinski carpet in C#

Draw a Sierpinski triangle in C#

This example shows how to draw a Sierpinski triangle. The post Draw a Sierpinski gasket in C# shows a rather strange iterative way to draw the shape shown in the picture. This example shows another way that is more obviously … Continue reading

Posted in algorithms, drawing, fractals, graphics, mathematics | Tagged , , , , , , , , , , , , | Comments Off on Draw a Sierpinski triangle in C#

Draw a skewed Sierpinski gasket with any number of corners in C#

The usual way to draw a Sierpinski gasket (as a strange attractor, anyway) is to start with 3 corners. To generate a point, randomly pick a corner and move halfway between the current position and the selected corner. See Draw … Continue reading

Posted in algorithms, fractals, graphics, mathematics | Tagged , , , , , , , , , , , , , | Comments Off on Draw a skewed Sierpinski gasket with any number of corners in C#

Draw a Sierpinski gasket in C#

The Sierpinski gasket is a triangle broken into smaller triangles as shown in the picture on the right. There are several ways you can generate this gasket. The one shown here is one of the more surprising. The program starts … Continue reading

Posted in algorithms, fractals, graphics, mathematics | Tagged , , , , , , , , , , | 2 Comments