This program maps an iterated function system in its drawing area onto the region -4 <= x <= 4, -3 <= y <= 3. If you click on a point, the program iterates these equations and plots the points:

X_{n+1}= X_{n}- h * Sin(Y_{n}+ Tan(3 * Y_{n})) Y_{n+1}= Y_{n}- h * Sin(X_{n}+ Tan(3 * X_{n}))

Here X_{0} and Y_{0} are the coordinates of the point you clicked. You can enter values for the constant `h` and the number of iterations to perform in the text boxes.

If you click the Plot All button, the program plots the series for every `dx`-th pixel, where dx is taken from the `dx` text box. For example, if `dx = 10` and `h = 0.01`, the program plots the series for every 10th pixel vertically and horizontally giving this result:

Experiment with the values in the text boxes to see what difference they make. In my next post, I’ll add some color to the program.

The details about how the program works are fairly straightforward. Download the example program and take a look for more information.

Pingback: Draw a colored Pickover popcorn fractal in C# - C# HelperC# Helper

Not Found

The requested URL /examples/howto_pickover_popcorn`.zip was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Sorry about that. There was an extraneous apostrophe in the download URL. I’ve fixed it.