Hopalong Image Generator

an interactive Java applet

Sorry, your browser does not support Java, or Java is not enabled.

This Java applet generates a unique fractal image before your eyes, based on Martin's Hopalong algorithm

Instructions:


How it works:

These images are generated by repeatedly applying a mapping function discovered by Barry Martin, of Aston University in England. This mapping was described in an article by A.K. Dewdney in the September 1986 issue of Scientific American magazine. Dewdney calls it Hopalong, but Martin prefers the name Martin's Mapping. The set of points generated by the mapping is called the orbit. This is the formula:

xn + 1 = yn - sign(xn) * sqrt|b*xn - c|

yn + 1 = a - xn

Depending on the values of the parameters a, b, and c, the orbital will vary, and the image will look different. You can change the parameters and look for a pattern that you like best.

You can watch the image emerge from nothing and grow as the points appear one at a time in changing colors. Get the Java source code here.

Related web sites

Back to table of contents

Free Web Counters
Pac Sun

David Imai, dimai at email.com

Modified 07-May-2004 09:06 PM