Sacred Geometry Mandala WebGL

← Back to Visuals

About This Simulation

This mandala is generated in real time on your GPU using GLSL fragment shaders. N-fold kaleidoscope symmetry mirrors every pixel into identical sectors, creating perfect geometric harmony. Concentric rings are drawn with signed-distance functions (SDFs), while cosine-palette colour mixing produces the slowly shifting rainbow. A gentle focus point for open-eye meditation or creative flow.

TechniqueSDF + Polar Coords
RendererWebGL2 GLSL
Symmetry6 / 8 / 12-fold
ColourCosine Palette

Frequently Asked Questions

What creates the mandala pattern?

The mandala is drawn in real time by a GLSL fragment shader using polar coordinates and N-fold kaleidoscope folding to achieve perfect symmetry, then draws concentric rings via signed-distance functions and petal clusters placed at symmetric positions.

What is kaleidoscope symmetry in GLSL?

The screen is divided into equal angular sectors and each pixel's position is folded into one sector before drawing. This mirrors the result N times, producing 6, 8 or 12-fold rotational symmetry — similar to a physical kaleidoscope.

Can I change the number of folds?

Yes — use the 6×, 8×, or 12× buttons in the control bar. Each changes the rotational symmetry of the entire mandala instantly with no reload.

Does this work offline?

Yes. ASMR Sanctuary is a PWA. After your first visit the simulation is cached by the Service Worker and works fully offline.

What sound pairs well with this mandala?

Crystal Singing Bowl (432 Hz) or Tibetan Bowl from the Sound Mixer create a perfect meditative atmosphere alongside the rotating geometry.

Is this suitable for open-eye meditation?

Yes. The slow rotation and gentle colour cycling create a soft focal point ideal for trataka (candle-gazing) style meditation or simply calming the mind after a stressful day.

What is a signed-distance function (SDF)?

An SDF returns the shortest distance from any point to the nearest surface of a shape. In this shader, rings and petal positions are evaluated as SDFs, then passed through an exponential function to create smooth glowing edges without jagged aliasing.

How are the colours generated?

Colours use cosine palette mixing: color = 0.5 + 0.5 × cos(offset + phase). Different offsets per ring and petal layer produce the shifting rainbow that cycles slowly with time.

Can I slow the rotation right down?

Yes — drag the Speed slider to the far left for 0.25× speed, creating an ultra-slow, almost imperceptibly moving mandala perfect for deep meditation.

What GPU is required?

Any WebGL-capable browser works, including phones from 2016 onwards. The shader computes each pixel independently on the GPU, so it runs well even on integrated graphics.