Skip to content

xcontcom/perfect-shuffle

Repository files navigation

🧠 Perfect Shuffle Fractals

Picture

Translated Article (Engilsh)

Original Article (Russian language)

Live demo

Live demo 3D

Live demo 3D (with rotations)

These aren't your average fractals.

What you see here is the result of a brutally simple idea:

Take a tiny grid, and recursively expand it using fixed spatial permutations.

No randomness.
No equations.
Just pure, symbolic structure β€” repeated through perfect, rule-based subdivision.

And the result?
Fractals that look like logic itself folding in on itself.


βš™οΈ What's going on?

This system starts with a 2Γ—2 binary grid. On each iteration:

  • The grid doubles in size
  • Each 2Γ—2 block is filled based on the current rule set
  • These rules are just perfect shuffles β€” deterministic rearrangements of pixel positions

You can think of each rule as a spatial bitwise operation.
The result is a massive, recursively structured pattern, built from nothing but clean logic.


πŸ”₯ Why it's crazy cool

  • Perfect self-similarity β€” no noise, no decay
  • Recursive logic β€” every pixel is a decision made by a rule, not a formula
  • Unreasonably expressive β€” despite the rules being tiny integers (0–15), the patterns explode into complexity
  • Visual proofs β€” each image is a pure mathematical artifact

These aren't just visualizations. They're symbolic systems unfolding.
They're the cousin of cellular automata and convolutional networks β€” but sharper, more discrete, and infinitely interpretable.


πŸ§ͺ TL;DR

You are looking at:

  • Recursive permutations
  • Lossless symbolic expansion
  • Fractal geometry with digital DNA

This is the cleanest chaos you’ll ever see.


Gallery

2.1.15.14 grey 2.1.15.14 rgb 2.1.15.14 binary
6.14.0.0 grey 6.14.0.0 rgb 6.14.0.0 binary
9.4.0.11 grey 9.4.0.11 rgb 9.4.0.11 binary
4.8.4.7 grey 4.8.4.7 rgb 4.8.4.7 binary
13.14.0.3 grey 13.14.0.3 rgb 13.14.0.3 binary
14.1.11.10 grey 14.1.11.10 rgb 14.1.11.10 binary
4.13.15.0 grey 4.13.15.0 rgb 4.13.15.0 binary
15.6.8.3 grey 15.6.8.3 rgb 15.6.8.3 binary
4.0.2.14 grey 4.0.2.14 rgb 4.0.2.14 binary
5.0.2.15 grey 5.0.2.15 rgb 5.0.2.15 binary
2.0.2.9 grey 2.0.2.9 rgb 2.0.2.9 binary
14.3.1.0 grey 14.3.1.0 rgb 14.3.1.0 binary
4.1.11.8 grey 4.1.11.8 rgb 4.1.11.8 binary
10.0.3.0 grey 10.0.3.0 rgb 10.0.3.0 binary

πŸ“„ License

MIT License. See LICENSE for details.


πŸ‘€ Author

Serhii Herasymov

sergeygerasimofff@gmail.com

https://github.com/xcontcom

About

Deterministic fractal generation using recursive spatial permutations of binary fields

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published