## Description

An important property of spherical is that it always maps circles to circles. But there is a special case. Look closely at the rightmost creature. Notice that its back is straight, but the image is curved. If we were to extend that line segment to be a complete line with both ends reaching to infinity, its image would be a circle. This is because a line is actually a special kind of circle, one with no curvature. It does seem a strange notion, but it is in fact mathematically sound. This special case only applies for circles that touch the origin, which spherical will map to lines. Conversely, spherical will map infinite lines to circles that touch the origin, and line segments to arcs of such circles.

What this means practically is that when using spherical you will tend to see a lot of circles. Since the blur variation produces a circle, let’s use it to see how iterating spherical works. This image was made using two transforms, one with blur, and one with spherical, with the spherical transform rotated and moved.

**Name:** spherical**Type:** 2D

This figure illustrates a number of points:

- Spherical preserves circles, but the center of a circle rarely maps to the center of the circle it maps to. The circle in the very center of this figure, with a bright spot in its center, is the original blur. The other circles are made by iterating spherical, and the mapped bright spots are not at their centers. So if a circle contains a pattern, spherical will distort that pattern even though it preserves the circle.
- The arrangement of a circle and a line are seen frequently with spherical, though this one is specially contrived to make overlapping iterations coincide so only 22 separate disks are visible. In practice, the disks overlap each other, with often rather messy results.
- Defining the inside and outside of a circle can be tricky mathematically, and spherical often seems to switch them. The colored area around the edge of this figure is in fact the inside of a circle; it extends to infinity in all directions. The outside of this circle is the white part containing the other circles that a normal person would call the inside. (Mathematicians are not normal people!)

Although not terribly interesting by itself, adding a very small amount of a contrasting variation to the transform with spherical can produce interesting styles. For example, adding a bit of linear produces the plastic style (the built-in script “Plastic” uses this technique).

Adding a bit of cross instead produces the oily style (the built-in script Oily_Rev3 uses this technique).

Not all variations work well, but that won’t stop us from trying! If one variation doesn’t work well, just try another. This one uses taurus.

Another common way to use spherical is to make a gasket. There are several ways to do this, but they involve two transforms with spherical at amount 1 and both rotated 90° (here we rotate them both clockwise). Then one of the variations is moved 1 unit in some direction, usually horizontal or vertical since that’s easiest, but just to be different we’ll move it diagonally here.

To make it more interesting, we fill the gasket by adding a third transform and moving the post transform up and left to center it in one of the large holes. Many variations can be used for this to produce different kinds of flames; this one uses hemisphere.

For something a bit different, this one uses cross.

Spherical is commonly used as a final variation. It moves points in the outer regions of the fractal to the center where they are visible. But it is only effective if there are lots of points in those outer regions. This will usually be the case when the flame uses variations like spherical and cross which throw points out there, and for infinite tilings. If there are no points in the outer regions, spherical will leave a hole in the center of the flame.

## Parameters

variation amount | Scale factor for the output. |

## Resources

The spherical variation is very useful, as attested to by the large number of fractal flame tutorials that feature it. They are mostly for Apophysis, but with a little experience they can be followed in JWildfire.

These tutorials use a transform with some kind of blur manipulated by a second transform with spherical and a second variation:

- Apophysis Plastic Tutorial by droz928
- Apophysis Oily Tutorial by Raemed
- Apophysis Tech Tutorial by XiceGfx

The blur can be replaced with a regular variation (usually a round one like bubble) to add more texture:

- Spherical Gems Tutorial by Drummerboy08
- Spherical/Bubble Gloss Tutorial by Fiery-Fire

These tutorials are based on a spherical gasket:

- Apophysis Tutorial – Sphericals by Fiery-Fire
- Hemispherical Apophysis Tutorial by C-91
- Chaotica Tutorial: Spherical Framework by fractalling

There are, of course, other ways to use spherical to make flames:

- Spherical Plants Apophysis Tutorial by C-91
- Spherical JScope for the Xaos-Phobic by plangkye

Finally, you can start with one of the flames shown above by downloading the flame pack.

Wow Rick, you’ve outdone yourself here, thank you so much for this explanation, and taking the time to put it together!