Mathwords logoMathwords

Flame Fractal — Definition, Formula & Example

A flame fractal, also called a fractal flame, is a computer-generated image made by repeatedly moving a point with randomly chosen nonlinear functions and recording where it lands. The brightness and color at each spot show how often the point visited it, which gives the soft, glowing look these images are known for.

A fractal flame is defined by finitely many functions F1,…,FnF_1, \dots, F_n on the plane, chosen with probabilities wiw_i. Each FiF_i applies an affine map and then a weighted sum of fixed nonlinear functions VjV_j, called variations. A chaos-game orbit is computed, and the image is a histogram of visited points, displayed with brightness on a logarithmic scale. Because variations such as the spherical one need not be contractions, the histogram is an empirical picture of the orbit's long-run distribution. It is not guaranteed to be the unique attractor described by Hutchinson's theorem for contractive systems. Scott Draves introduced the method in 1992.

Key Formula

Fi(x,y)=∑jvij Vj(aix+biy+ci,  dix+eiy+fi)F_i(x,y) = \sum_{j} v_{ij}\, V_j\big(a_i x + b_i y + c_i,\; d_i x + e_i y + f_i\big)
Where:
  • FiF_i = The i-th function of the flame, applied when it is chosen at random
  • ai,bi,ci,di,ei,fia_i, b_i, c_i, d_i, e_i, f_i = Coefficients of the affine map applied before the variations
  • VjV_j = A fixed variation, such as linear V0(x,y)=(x,y)V_0(x,y) = (x,y) or spherical V2(x,y)=1x2+y2(x,y)V_2(x,y) = \frac{1}{x^2+y^2}(x,y)
  • vijv_{ij} = Weight of variation VjV_j inside function FiF_i

Worked Example

Problem: A flame function uses the affine map (x,y)↦(0.5x+1,  0.5y)(x,y) \mapsto (0.5x + 1,\; 0.5y), then blends the linear and spherical variations with weights vlin=0.5v_{\text{lin}} = 0.5 and vsph=0.5v_{\text{sph}} = 0.5. Find the image of the point (2,4)(2, 4).
Step 1: Apply the affine map to (2,4)(2, 4).
(0.5⋅2+1,  0.5⋅4)=(2, 2)(0.5 \cdot 2 + 1,\; 0.5 \cdot 4) = (2,\, 2)
Step 2: Apply the spherical variation to (2,2)(2,2). Here x2+y2=4+4=8x^2 + y^2 = 4 + 4 = 8.
V2(2,2)=(28, 28)=(14, 14)V_2(2,2) = \left(\tfrac{2}{8},\, \tfrac{2}{8}\right) = \left(\tfrac{1}{4},\, \tfrac{1}{4}\right)
Step 3: The linear variation leaves (2,2)(2,2) unchanged. Blend the two results with their weights.
0.5 (2,2)+0.5(14,14)=(98, 98)=(1.125, 1.125)0.5\,(2,2) + 0.5\left(\tfrac14,\tfrac14\right) = \left(\tfrac98,\,\tfrac98\right) = (1.125,\, 1.125)
Answer: The point (2,4)(2,4) maps to (1.125, 1.125)(1.125,\, 1.125). A flame renderer repeats steps like this millions of times, choosing a function at random each time, and counts how often each pixel is hit.

Why It Matters

Fractal flames power digital-art tools such as Apophysis and the Electric Sheep screensaver, and they appear in computer graphics and generative-art projects. They also give a clear case where the contraction-based theory of iterated function systems does not directly apply.

Common Mistakes

Mistake: Assuming a flame image is the unique attractor guaranteed by the theory of iterated function systems.
Correction: That guarantee requires every map to be a contraction, meaning it shrinks the distance between any two points. The spherical variation can stretch distances. It sends (0.25,0.25)(0.25, 0.25) to (2,2)(2,2) and (0.5,0.5)(0.5, 0.5) to (1,1)(1,1), so a distance of about 0.3540.354 grows to about 1.4141.414, four times larger. Treat the flame as a histogram of a chaos-game orbit, not as a proven attractor.

Related Terms

  • Fractal — The general family that flame fractals belong to
  • Chaos Game — The random iteration method that renders every flame
  • Koch Snowflake — Built from linear contractions, unlike nonlinear flame variations
  • Dragon Curve — Two-map similarity fractal contrasting with nonlinear flame functions
  • Nonlinear Function — Type of function that moves the point