a background that breathes

Aizawa attractor

A small set of equations rendered as a WebGL scene — for web devs who want a living, mathematical background without building one.

Three ways in

The pillars

pillar

By hand

From one HTML file to the real renderer look — no library at all. For the curious.

the math first

pillar

Batteries included

Two lines of code to the full ambient scene — presets, camera tour, bloom trails, resize and context-loss handling.

the fast path

pillar

API surface

Looks, shots, presets, runs and developed starts — everything the library exposes, one stop at a time.

go deeper

I fell in love with mathematics back in school, and I never really fell out of it. The Aizawa attractor is a small set of equations that draws a shape you can stare at for a long time — something between a cosmic vortex and a living thing. This site teaches it three ways; pick the pillar that sounds like you.

Why this library exists

A believable chaotic-attractor scene is a week of subtle work — stable integration, trails, bloom, a camera that knows where to look, presets that don’t explode. @krusenstiern/aizawa-attractor packages that so a page pays two lines for it — and this site shows exactly what those two lines buy, file by file:

examples/11_Hello/main.js
// The whole ambient scene — verified preset, site look, looping
// camera tour, resize and context-loss handling — in one call.
// Every option defaults; nothing else is required.
import { startAttractor } from '@krusenstiern/aizawa-attractor/three';

startAttractor(document.querySelector('canvas'));

What it’s good for

What it’s bad for