PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Math Visualization

Other simulators in this category — or see all 46.

View category →
NewKids

Conway's Game of Life

B3/S23 on a torus: paint cells, run, step — glider, LWSS, Gosper gun, pulsar, and more.

Launch Simulator
NewSchool

a → v → x

Integrate acceleration to velocity and position; stacked time graphs.

Launch Simulator
NewSchool

Taylor Polynomial

sin, cos, or exp vs Taylor sum about center a up to order n.

Launch Simulator
NewSchool

Complex Phasor

exp(iωt) on the unit circle; Re, Im, and phase φ.

Launch Simulator
NewKids

Chaos Game (Sierpiński)

Random vertex + midpoint walk; the attractor is the Sierpiński gasket — try RGB by vertex.

Launch Simulator
NewUniversity / research

Lagrange vs Cubic Spline

Click knots: Lagrange polynomial vs natural cubic spline; Runge preset shows edge oscillations.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Fractal Generator

Fractal Generator

At its core, this simulator visualizes the behavior of complex dynamical systems through fractal geometry. The primary models are the Mandelbrot and Julia sets, which are generated by iterating a simple quadratic function in the complex plane: z_n+1 = z_n^2 + c. For the Mandelbrot set, the parameter c is the coordinate of the point being tested, and the iteration starts with z_0 = 0. The fate of the orbit—whether it remains bounded or escapes to infinity—determines the point's color and inclusion in the set. For a Julia set, c is a fixed complex constant, and the iteration starts with z_0 as the coordinate. This reveals the basin of attraction for infinity versus other attractors. The simulator also models the Koch snowflake, a classic example of a self-similar fractal constructed through a recursive geometric replacement rule, demonstrating a shape with a finite area but an infinite perimeter. A key simplification is the use of discrete iteration with a finite escape radius and a maximum iteration count, which approximates the true mathematical boundary. By interacting, students learn about complex numbers, iteration, stability, chaos, and the concept of self-similarity across scales. They can explore the infinite complexity hidden in simple rules, observe sensitive dependence on initial conditions at fractal boundaries, and grasp the mathematical definitions of fractal dimension and boundedness.

Who it's for: Advanced high school and undergraduate students in mathematics, computer science, or physics courses covering complex analysis, dynamical systems, or computer graphics.

Key terms

  • Mandelbrot Set
  • Julia Set
  • Complex Number
  • Iteration
  • Fractal Dimension
  • Self-Similarity
  • Escape Time Algorithm
  • Orbit (Dynamics)

Mode

180

Shortcuts

  • •R — reset view (Mandelbrot / Julia)

Measured values

Modemandelbrot

How it works

Explore Mandelbrot and Julia sets via escape-time iteration z ← z² + c (Mandelbrot: start at z = 0 and vary c; Julia: fix c and vary z₀). Pan with the mouse, zoom with the wheel. Koch snowflake is a classic self-similar curve built by replacing each segment.

Key equations

Mandelbrot: z₀ = 0, zₙ₊₁ = zₙ² + c (c scans the plane)
Julia: c fixed, z₀ = pixel, zₙ₊₁ = zₙ² + c

Frequently asked questions

Are the intricate shapes I see when zooming in pre-drawn or calculated?
They are calculated in real-time. The simulator applies the iteration formula z_n+1 = z_n^2 + c to millions of points on your screen. The color of each pixel is determined by how quickly the orbit for that point's coordinate escapes a predefined boundary. This escape time algorithm generates the detailed patterns.
What do the different colors in the Mandelbrot visualization actually mean?
Points colored black are typically within the Mandelbrot set, meaning their orbits remain bounded. All other colors represent points outside the set. The specific hue indicates the number of iterations required for the orbit's magnitude to exceed the escape radius (e.g., 2). This creates a contour map of escape velocity, revealing the set's intricate boundary structure.
What's the connection between the Mandelbrot set and a Julia set?
They are generated by the same equation, z_n+1 = z_n^2 + c, but with different roles for the parameter c. For the Mandelbrot set, you test different c values. For a Julia set, you fix c and test different starting points z_0. Remarkably, each point c in the Mandelbrot set corresponds to a connected Julia set, while points outside correspond to disconnected, Cantor-dust-like Julia sets.
Is this just abstract math, or does it have real-world applications?
Fractals model many natural phenomena with self-similar structures, such as coastlines, mountain ranges, fern leaves, and vascular systems. The mathematics of iteration and stability in complex systems is fundamental to chaos theory, with applications in physics, engineering, signal processing, and computer graphics for generating realistic natural textures.