RSS Amplifier

Index on Blog · Mar 25, 2023

Chaos game

0
Sign in to vote or save

blog.ubavic.rs

Back to Index

Today I released the interactive demonstration of iterated function system know as Chaos game. You can read more about Chaos game on the Wikipedia, but long story short, we fix a plane polygon $\Pi = \{V_1, \dots V_m\}$ and choose an arbitrary plane point $P_0$. Then we iteratively generate orbit $\mathcal O = \{P_0, P_1, P_2, …\}$ by using formula $$ \vec P_{i+1} = \frac12\left(\vec P_i+\vec V\right),$$ where $V$ is at each iteration chosen randomly from $\{V_1, \dots V_m\}$.

Choosing equilateral triangle for $\Pi$ we get a Sierpiński triangle

My program treats vertices as complex numbers, and uses formula $$ \vec P_{i+1} = \lambda\left(\vec P_i+\vec V\right),$$ where $\lambda$ is arbitrary (but fixed) complex parameter. This enables user to create many interesting orbits which are not possible in the “original” description of the system. As far as I know, for this reason this program is unique on the web.

Choosing equilateral triangle for $\Pi$ and $\lambda=-1$, we get an 'inverted Sierpiński triangle'

Interesting examples

Read the original on blog.ubavic.rs

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.