
Recent Posts

Recent Comments
Archives
 November 2018
 October 2018
 September 2018
 August 2018
 July 2018
 June 2018
 May 2018
 April 2018
 March 2018
 February 2018
 January 2018
 December 2017
 November 2017
 October 2017
 September 2017
 August 2017
 July 2017
 June 2017
 May 2017
 April 2017
 March 2017
 February 2017
 January 2017
 December 2016
 November 2016
 October 2016
 September 2016
 August 2016
 July 2016
 June 2016
 May 2016
 April 2016
 March 2016
 February 2016
 January 2016
 December 2015
 November 2015
 October 2015
 September 2015
 August 2015
 July 2015
 June 2015
 May 2015
 April 2015
 March 2015
 February 2015
 January 2015
 December 2014
 November 2014
 October 2014
 September 2014
 August 2014
 July 2014
 June 2014
 May 2014
 February 2014
 January 2014
 December 2013
 October 2013
 August 2013
 June 2013
 December 2012
 September 2012
 July 2012
 June 2012
 November 2011
 May 2011
 April 2011
 February 2011
 December 2010
Categories
 .NET
 3D
 3D graphics
 ADO.NET
 algorithms
 animation
 API
 arrays
 attributes
 audio
 books
 C#
 C# programming
 calculations
 challenges
 classes
 clipboard
 coding
 combinatorics
 console
 controls
 cryptography
 curve fitting
 database
 debugging
 dialogs
 directories
 Drag and Drop
 drawing
 drawings
 enums
 Event
 events
 example program
 Excel
 extension methods
 extensions
 files
 finance
 fonts
 formatting
 forms
 fractals
 ftp
 games
 GDI+
 generic
 geometry
 globalization
 graphics
 html
 IDE
 image processing
 inheritance
 interfaces
 internationalization
 internet
 interoperability
 LINQ
 lists
 localization
 mathematics
 memory
 menus
 MessageBox
 methods
 miscellany
 multimedia
 network
 Office
 OOP
 operators
 parsing
 performance
 phone
 PowerPoint
 printers
 printing
 productivity
 programs
 puzzles
 recursion
 reflection
 registry
 regular expressions
 serialization
 settings
 SQL
 stories
 strings
 syntax
 system
 threading
 tips
 tools
 transformations
 Uncategorized
 user interface
 variables
 VBA
 web
 Windows Forms programming
 WMI
 Word
 wpf
 XAML
 XML
Meta
Category Archives: fractals
Draw a randomly colored Sierpinski pentagon in C#
The example Draw a colored Sierpinski pentagon in C# lets the user click on the parts of a Sierpinski pentagon to change their colors. Eddie Bole thought it would be interesting to color the larger pentagons in addition to the … Continue reading
Posted in drawing, fractals, graphics, recursion
Tagged C#, C# programming, drawing, example, example program, fractals, graphics, recursion, recursively, Sierpinski pentagon, Windows Forms programming
4 Comments
Draw a colored Sierpinski pentagon in C#
The example Draw a Sierpinski pentagon in C# shows how to draw a Sierpinski pentagon. This example modifies that one so the user can click on pentagons to change their colors. To do that, this program takes a very different … Continue reading
Posted in drawing, fractals, graphics, recursion
Tagged C#, C# programming, drawing, example, example program, fractals, graphics, recursion, recursively, Sierpinski pentagon, Windows Forms programming
6 Comments
Draw a Pythagoras tree fractal in C#
A Pythagoras tree (or Pythagorean tree) is a fractal tree built from squares. It starts with a square that forms the tree’s base. The program then makes the Pythagoras tree by recursively attaching two smaller branches to the original branch. … Continue reading
Posted in drawing, fractals, graphics, recursion
Tagged C#, C# programming, drawing, example, example program, fractals, graphics, Pythagoras tree, Pythagorean tree, recursion, Windows Forms programming
1 Comment
Draw a Sierpinski pentagon in C#
In a Sierpinski pentagon, larger pentagons are recursively divided into five smaller pentagons with a sixth uncolored pentagon in the center. The following picture shows the first four levels of the resulting fractal. For this example, I decided to think … Continue reading
Posted in drawing, fractals, graphics, recursion
Tagged C#, C# programming, drawing, example, example program, fractals, graphics, recursion, recursively, Sierpinski pentagon, Windows Forms programming
6 Comments
Draw a Fibonacci word fractal in C#
This example uses the Fibonacci word to draw a fractal curve. For information on the Fibonacci word, see the post Calculate Fibonacci words in C#. To draw a curve with level N, use Fibonacci word number N. Loop through the … Continue reading
Posted in algorithms, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, example, example program, Fibonacci, Fibonacci fractal, Fibonacci numbers, Fibonacci word, Fibonacci word fractal, Fibonacci words, fractals, graphics, iterated equation, mathematics, Windows Forms programming
Leave a comment
Calculate Fibonacci words in C#
You can find Fibonacci words by concatenating previous Fibonacci words much as you calculate the Fibonacci sequence by adding previous values in the sequence. The first two Fibonacci words are: S0 = 0 S1 = 01 The following Fibonacci words … Continue reading
Posted in algorithms, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, example, example program, Fibonacci, Fibonacci sequence, Fibonacci words, fractals, graphics, mathematics, Windows Forms programming
1 Comment
Draw the Weierstrass function in C#
The Weierstrass function was discovered by Karl Weierstrass in 1872. It’s an odd function that is continuous everywhere but differentiable nowhere. I’ll explain what that means shortly. Here’s the function: Here: The following two sections explain what it means to … Continue reading
Posted in algorithms, drawing, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, continuous function, differentiable function, discontinuous function, drawing, example, example program, fractals, graphics, mathematics, nondifferentiable function, Weierstrass curve, Weierstrass function, Windows Forms programming
Leave a comment
Draw a recursive overlapping snowflake fractal in C#
The example Draw a recursive snowflake fractal in C# explains how to use an iterator and a generator to draw a snowflake fractal. This example uses the same technique with the initiator and generator shown in the second and … Continue reading
Draw a recursive von Koch snowflake fractal in C#
This example shows how to draw a von Koch snowflake fractal. It uses the same techniques described in the post Draw a recursive snowflake fractal in C#. The DrawSnowflake and DrawSnowflakeEdge methods are exactly the same as before. The … Continue reading
Posted in algorithms, drawing, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, drawing, example, example program, fractals, generator, graphics, initiator, mathematics, recursion, recursive, snowflake, snowflake curve, snowflake fractal, von Koch, von Koch fractal, von Koch snowflake, Windows Forms programming
Leave a comment
Draw a recursive snowflake fractal in C#
This program draws a recursive snowflake fractal by using an initiator and a generator to define the fractal’s shape. The initiator is a curve that represent the fractal’s basic shape. In this case, the initiator is the triangle shown … Continue reading