Skip to content

A fractal triangular structure using simple rules and randomness, step by step. Check source code!

Notifications You must be signed in to change notification settings

pablolucianop/endlessTriangle

Repository files navigation

Endless Triangle

Endless Triangle generated by rules and chance

This is a js version of 'the game of chaos' proposed in the book 'Randomness in everyday life' by Alberto Rojo. The source code is written as a step by step demonstration.

The instructions are:

  • 1 define a triangle
  • 2 pick the a random 'First Point', inside this triangle.
  • 3 pick a random vertex of the triangle previously defined
  • 4 find the middle point between the chosen vertex and that 'First Point', and push it into an array
  • 5 define the middle the point between the point defined before and a random vertex of our triangle, and draw this point
  • 6 repeat a lot of times

book page where the original game proposition is taken from

Author

Pablo Panza

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Alberto Rojo, author of: El azar en la vida cotidiana. Buenos Aires, Siglo XXI, 2012. -

About

A fractal triangular structure using simple rules and randomness, step by step. Check source code!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published