The taffy-like quaternion Julia sets are similar to complex Julia sets, except that they exist in four dimensions rather than just two. They aren’t really useful or significant; but, like other fractals, they tend to look pretty.
A Quick Review
Before getting into quaternion Julia sets, here is a short review of how complex Julia sets work:
Complex numbers have two parts, a real part and an imaginary part. Since they have two parts, they can be graphed in two dimensions. A complex Julia set is created by running each point on the plane through an iterative function zn+1 = zn2 + c, where c is a constant (different values for the constant yield different Julia sets). If the result of the function goes to infinity, the point is not in the set. If the result stays bounded, the point is in the set. Coloring points in the set gives us a pretty picture.
The Quaternions
Quaternions, an extension of the complex numbers, are numbers of the form a + bi + cj + dk, where i2 = j2 = k2 = ijk = -1. The first number a is the “real” part. The last three numbers b, c, and d are the “pure” or “imaginary” parts. Since quaternions have four parts, we can graph them in four dimensions.
Quaternion Julia Sets
Quaternion Julia sets are constructed just like complex Julia sets. Each point in four-space can be represented by a quaternion. That quaternion is then run through the function zn+1 = zn2 + c many times. If the result goes to infinity, the point is not in the set. If the result does not go to infinity, that point is in the set.
Dimension Reduction
The resulting Julia set is a four-dimensional object. In order to be viewed, the object must be reduced by one or two dimensions. This is usually done by taking a three-dimensional cross-section of the four-dimensional object (that is, the set is intersected with a hyperplane). Practically what this means is one part of each quaternion is set to be a constant number, and the remaining three parts of the quaternion are graphed in three dimensions.
Stacking Up the Slices
However, we can perhaps get a better idea of what the 4D object looks like by arranging slices along a time axis. The following animation shows a series of cross-sections as the slicing plane varies from -1 to 1 and the object is rotated 360 degrees about the y-axis.
See Also
For more information about quaternion Julia set fractals, Paul Bourke has a good webpage on the subject, which also includes some pov-ray code.
If you would like to experiment with making your own quaternion Julia sets, Julia Shapes is a good program to try out. It has sliders that let you manipulate all the parameters.

Complex Julia Sets
Complex numbers are numbers of the form a+bi, where i2 = -1. As these numbers have two parts (a real part and an imaginary part) they can be graphed in two dimensions. Usually, the real part (a) is plotted on the x-axis and the imaginary part (b) is plotted on the y-axis. Thus we can create a mapping to go back and forth between a point on a plane and a complex number.
Julia sets can be made even prettier by adding color. The color of each point is usually determined by how fast that point diverges to infinity.

A lot of mathematical art concerns itself with objects that exist in four or more dimensions. Even physicists have been telling us that we live in a ten dimensional universe. How are we, as three-dimensional beings, able to understand this?


The first is to slice the object and look at its cross section. For example, taking the cross-section of a sphere results in a circle. Just as a cross-section of a 3D object is a 2D figure, a cross section of a 4D object is a 3D figure. This would be called “intersecting” the object with a plane. Of course, what the cross section looks like will depend on where and at what angle the object is sliced. To get a feel for the nature of a four-dimensional object, it is helpful to examine a series of slices along an axis perpendicular to the slicing plane.