ArticleslgStudy

mathematics

Fractal flame

Fractal flame is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fractal flame rather than just read about it. In short: Fractal flames are a member of the iterated function system class of fractals created by Scott Draves in 1992. Draves' open-source code was later ported into Adobe After Effects graphics software and translated into the Apophysis fractal flame editor.

Fractal flame — main illustration
Fractal flame — illustration

Key takeaways

  • Fractal flame belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fractal flame to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fractal flame from memory before moving on to harder problems.

Reference excerpt

Fractal flames are a member of the iterated function system class of fractals created by Scott Draves in 1992. Draves' open-source code was later ported into Adobe After Effects graphics software and translated into the Apophysis fractal flame editor. Fractal flames differ from ordinary iterated function systems in three ways:

Nonlinear functions are iterated in addition to affine transforms. Log-density display instead of linear or binary (a form of tone mapping) Color by structure (i.e. by the recursive path taken) instead of monochrome or by density. The tone mapping and coloring are designed to display as much of the detail of the fractal as possible, which generally results in a more aesthetically pleasing image.

Algorithm The algorithm consists of two steps: creating a histogram and then rendering the histogram.

Creating the histogram

First, one iterates a set of functions, starting from a randomly chosen point P = (P.x,P.y,P.c), where the third coordinate indicates the current color of the point.

Set of flame functions: {F1(x,y),p1F2(x,y),p2…Fn(x,y),pn In each iteration, choose one of the functions above where the probability that Fj is chosen is pj. Then one computes the next iteration of P by applying Fj on (P.x,P.y). Each individual function has the following form:

Fj(x,y)=∑Vk∈Variationswk⋅Vk(ajx+bjy+cj,djx+ejy+fj) where the parameter wk is called the weight of the variation Vk. Draves suggests that all wk:s are non-negative and sum to one, but implementations such as Apophysis do not impose that restriction. The functions Vk are a set of predefined functions. A few examples are

V0(x,y) = (x,y) (Linear) V1(x,y) = (sin x,sin y) (Sinusoidal) V2(x,y) = (x,y)/(x2+y2) (Spherical) The color P.c of the point is blended with the color associated with the latest applied function Fj:

P.c := (P.c + (Fj)color) / 2 After each iteration, one updates the histogram at the point corresponding to (P.x,P.y). This is done as follows:

The colors in the image will therefore reflect what functions were used to get to that part of the image.

Rendering an image To increase the quality of the image, one can use supersampling to decrease the noise. This involves creating a histogram larger than the image so each pixel has multiple data points to pull from. For example, create a histogram with 300×300 cells in order to draw a 100×100 px image; each pixel would use a 3×3 group of histogram buckets to calculate its value. For each pixel (x,y) in the final image, do the following computations:

The algorithm above uses gamma correction to make the colors appear brighter. This is implemented in for example the Apophysis software. To increase the quality even more, one can use gamma correction on each individual color channel, but this is a very heavy computation, since the log function is slow. A simplified algorithm would be to let the brightness be linearly dependent on the frequency:

but this would make some parts of the fractal lose detail, which is undesirable.

Density estimation The flame algorithm is like a Monte Carlo simulation, with the flame quality directly proportional to the number of iterations of the simulation. The noise that results from this stochastic sampling can be reduced by blurring the image, to get a smoother result in less time. One does not however want to lose resolution in the parts of the image that receive many samples and so have little noise. This problem can be solved with adaptive density estimation to increase image quality while keeping render times to a minimum. FLAM3 uses a simplification of the methods presented in *Adaptive Filtering for Progressive Monte Carlo Image Rendering*, a paper presented at WSCG 2000 by Frank Suykens and Yves D. Willems. The idea is to vary the width of the filter inversely proportional to the number of samples available. As a result, areas with few samples and high noise become blurred and smoothed, but areas with many samples and low noise are left unaffected. Not all Flame implementations use density estimation.

See also Apophysis, an open source fractal flame editor for Microsoft Windows and Macintosh. Electric Sheep, a screen saver created by the inventor of fractal flames which renders and displays them through distributed computing. GIMP, a free software, multi OS image manipulation program that can generate fractal flames.

References

Illustrations

Fractal flame: A fractal flame created by the Electric Sheep computing project.
A fractal flame created by the Electric Sheep computing project.
Fractal flame: Fractal flame created in Apophysis.
Fractal flame created in Apophysis.
Fractal flame: A fractal flame.
A fractal flame.

Worked examples

Example 1 — a first encounter with Fractal flame

Start with the simplest possible case. Write down what Fractal flame claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fractal flame before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fractal flame ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fractal flame

In research
Fractal flame appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fractal flame in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fractal flame is common in secondary-school and first-year university syllabi. It links to neighbouring topics Iterated function systems, Psychedelic art, so understanding it makes those chapters shorter.
In everyday life
Look for Fractal flame outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fractal flame” →

How to study Fractal flame in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fractal flame means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fractal flame out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fractal flame in simple terms?

Fractal flames are a member of the iterated function system class of fractals created by Scott Draves in 1992. Draves' open-source code was later ported into Adobe After Effects graphics software and translated into the Apophysis fractal flame editor.

Why does Fractal flame matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fractal flame?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fractal flame.

Tags

  • Iterated function systems
  • Psychedelic art

Keep exploring