Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Note: the README previously referenced a banner.svg banner image, but no image assets exist in this repo (checked working tree and git history), so the broken <img> tag was removed.

✦ Platonic Creative Suite

Five solids. Five symmetry groups. Five textures of randomness — all passing the same tests, all telling different stories.

The pentagon dial clicks clean between them. What you call inspiration is just turning the dial until the pattern of noise catches light exactly the way the ache in your hand already knew it should.

— Seed Pro, on reading the source


What Is This?

A single-page creative instrument that maps randomness through the rotational symmetry groups of the five Platonic solids. Drag a star inside a pentagon. Each vertex represents a solid. The position blends their symmetry groups by barycentric weight, producing randomness that feels different — even though every solid passes the same uniformity tests. The difference is texture, not correctness.

The dodecahedron breathes φ into every gap. The tetrahedron cuts sharp margins. The icosahedron rolls. The cube stacks. The octahedron mirrors.


The Five Solids

Solid Symmetry Group Rotations Vertices Character Color
Tetrahedron A₄ 12 4 Sharp, angular, staccato 🔴 Red
Cube S₄ 24 8 Stable, orthogonal, periodic 🟡 Amber
Octahedron S₄ 24 6 Balanced, organic, breathing 🟢 Green
Icosahedron A₅ 60 12 Flowing, natural, undulating 🔵 Blue
Dodecahedron A₅ 60 20 Golden-ratio rhythm, lush, alive 🟣 Purple

Each solid's vertex set defines the orbit through which the PRNG state cycles. The dodecahedron embeds the golden ratio (φ = 0.6180339887...) into every state mix, creating Fibonacci-offset micro-delays.


How It Works

The Pentagon Dial

Drag the star inside the pentagon. Each vertex corresponds to a solid. The barycentric position determines blend weights — pull toward the tetrahedron for sharp, angular randomness; drift toward the dodecahedron for lush, golden-ratio smoothness. The lines from each vertex to the star brighten and thicken with weight.

PlatonicRNG

Each solid has its own PRNG class. State advances through the solid's vertex orbit, XORing vertex coordinates into the mulberry32 backend at each step. The vertex cycle length determines the orbit structure — 4 for the tetrahedron, 20 for the dodecahedron.

BlendedRNG

When multiple solids are active, a BlendedRNG instance combines them. Each step, all active RNGs advance. Their outputs are XOR-combined at the bit level (uint32 → XOR → normalize), preserving uniformity while merging textures.

The Textureoscope

A live dual-panel visualization:

  • Top: value traces — an oscilloscope showing each solid's raw output and the blended combination
  • Bottom: orbit walks — 2D random walks colored by solid, revealing the geometric structure of each randomness type

Three Generators

  • 🌍 World — procedural landscape with biome, weather, elevation, features. Mountain silhouette layers rendered on canvas.
  • 🎵 Music — melody in C major (or Dorian, Mixolydian, Pentatonic). Random walk on scale degrees. Plays through Web Audio API with sine wave synthesis.
  • ✦ Art — 2000+ shapes drawn from the blended stream. Position, size, type (circle, triangle, square, pentagon, hexagon) all determined by the RNG.

Tech

  • Single index.html — no build step, no dependencies, no framework
  • Canvas 2D API — all rendering through native browser canvas
  • Web Audio API — sine wave synthesis for music generation
  • Vanilla JS — PlatonicRNG, BlendedRNG, pentagon dial, textureoscope, all hand-written

Open it in a browser. That's it.

Deployment

npx wrangler pages deploy . --project-name platonic-creative-suite

Deployed via Cloudflare Pages.


The Mathematics

The suite implements the rotational symmetry groups of the Platonic solids as PRNG state cycles:

  • A₄ (tetrahedron): 12 rotational symmetries, 4 vertices → short orbit, high energy
  • S₄ (cube/octahedron): 24 rotational symmetries — dual solids sharing the same group
  • A₅ (icosahedron/dodecahedron): 60 rotational symmetries — the largest finite rotation group in 3D. The dodecahedron's 20 vertices include golden-ratio coordinates: [0, ±φ, ±1/φ], producing irrational mixing

The xmur3 hash seeds mulberry32. Vertex coordinates XOR into state at each step. All groups produce sequences that pass uniformity tests — the difference is the orbit structure, the geometric signature of the randomness, not its statistical properties.

This is a new dimension of authorship: not just the seed, but the geometry.


Fleet Context

Part of the SuperInstance fleet. The Platonic Creative Suite is the visual and musical frontend for the mathematics underneath:

The creative suite is also connected to the fleet's creative infrastructure:


Where to Next


© 2026 Casey DiGennaro · MIT License

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages