# Tag Archives: Sierpinski

## Draw a randomly colored Sierpinski octagon in C#

This example draws a randomly colored Sierpinski octagon. It’s basically the same as the example Draw a randomly colored Sierpinski pentagon in C# except it draws an octagon instead of a pentagon. See that example for most of the details. … Continue reading

Posted in algorithms, fractals, graphics, recursion | | Comments Off on Draw a randomly colored Sierpinski octagon in C#

## 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 | | 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 | | 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 | | 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 | | 2 Comments

## Draw a Sierpinski fractal curve in C#

This example shows how to build a Sierpinski curve fractal, a space-filling curve that is in some ways similar to the Hilbert curve fractal. Enter the desired maximum depth of recursion and click Go to draw the curve. If you … Continue reading

Posted in algorithms, fractals, graphics, mathematics | | Comments Off on Draw a Sierpinski fractal curve in C#