Skip to content

Apidcloud/chaos-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chaos Game

with-coffee with-water with-love

This project generates different fractals with the Chaos Game, through the use of Plotly. For instance, Sierpinski triangle, can be generated by starting with 3 vertices (V1, V2, V3), and a (pseudo-)random starting point within the boundaries of the triangle made with said vertices. In each iteration, a vertex is chosen (pseudo-)randomly. A new point (n) is then created and directed to the chosen vertex and placed at half the distance between the chosen vertex and the last added point (n-1). After a few hundred iterations, the silhouette of the Sierpinsky triangle starts to appear. With some more rules and different distances, other fractals are achieved (see examples below).

Live Demo

About

Chaos Game to visualise Sierpinski triangle using Plotly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages