billiard-fractals

Billiard Fractals

Full article

Article on DEV.to

Preview

This project explores how simple rules - like a billiard ball bouncing in a rectangular grid - can produce complex, structured patterns when translated into symbolic sequences.

By reducing 2D trajectories to 1D symbolic sequences:

$Q_k=\left\lfloor k \sqrt{x} \right\rfloor \bmod 2$

we uncover recursive, quasi-fractal structures emerging purely from irrational steps and modular thresholds. These binary sequences, when rendered spatially, exhibit self-similarity, despite being entirely deterministic.

Preview

Further extending this idea with nonlinear functions:

$Q_k=\left\lfloor k^2 \sqrt{x} \right\rfloor \bmod 2$

we observe patterns resembling interference textures or symbolic holography - generated not by waves, but by curved discretization.

Preview

The work presented here is a translation and adaptation of my articles on Habr (Part 1, Part 2, Part 3, Part 4)

Full article

License

MIT License. See LICENSE for details.

Contact

Serhii Herasymov

sergeygerasimofff@gmail.com

https://github.com/xcontcom