BLOG.CSHARPHELPER.COM: Draw a skewed Sierpinski gasket with any number of corners in C#
Draw a skewed Sierpinski gasket with any number of corners in C#
One way to draw a Sierpinski gasket 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 a Sierpinski gasket in C# for more information.
This example lets you pick corners at run time. Left-click on the form to pick at least 2 points. Then right-click to start the program running. The program uses the following code to draw the modified gasket.
Comments