I want to write a program that allows you to explore Iterated Function System (IFS) fractals interactively by moving points around with the mouse.
There's a few different ways to do this, depending on what set of transformations you use.
IFS fractals usually use affine transformations, which encompass translations, rotations, dilations and shears. This can be done with 3 points per transformation - if one considers the points as complex numbers we have the transformation . However, rather than controlling , and directly I think it would work better to move the images of some interesting points like , and (i.e. move , and ). Then the geometric interpretation of the control points would be easy to understand - they would just be the corners of a transformed rectangle.
However, there are other possible transformations. We could reduce the number of control points to 2 and disallow non-orthogonal transformations, giving and control points and mapping to and .
We could move to quadratics and move , and , and with 4 points we can do cubics (in which case we would probably use control points , , and ).
We can even go all the way to (6 control points) if we wanted to go really crazy - that might be a bit unwieldy though.
I'd also like to be able to associate a colour with each transformation so that the colour of a point in the final image depends on the sequence of transformations that led to that point. Perhaps for some .