Tag Archives: butterfly curve

Draw a colored butterfly curve in C#

This program uses the following equations to draw the butterfly curve: The following Paint event handler draws the curve. private const int period = 24; // Draw the butterfly. private void Form1_Paint(object sender, PaintEventArgs e) { e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; e.Graphics.Clear(this.BackColor); … Continue reading

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