Skip to content

Elessurgon/Chaos-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example 1
cargo run -- -x 1000 -y 1000 -p 100 800 800 100 800 800 -d 2 -i 100000
3 points with a proportional distance of half

Example 2
cargo run -- -x 1000 -y 1000 --points 100 100 100 800 800 100 800 800 -d 3 --iter 100000
4 points with a proportional distance of a 1/3

Example 3
cargo run -- -x 2000 -y 2000 -e 10 -d 3 -i 500000
10 points equidistant proportional distance of a third iterated 500_000 times

Example 4
cargo run -- -x 10000 -y 10000 -e 10 -n 4 -d 5 -i 10000000
10 points equidistant proportional distance of a 4/5 iterated 10_000_000 times

Example 5
cargo run -- -x 1000 -y 1000 -e 5 -n 3.3 -d 5.5 -i 100000
5 points equidistant proportional distance of a 3.3/5.5(=0.6) iterated 100_000 times

Using $\frac{n}{n+3}$ should yield an equidistant fractal structure

Example 6
cargo run -- -x 1000 -y 1000 -e 10 -n 10 -d 13 -i 10000000
10 points equidistant proportional distance of a 10/13 iterated 10_000_000 times

Example 7
cargo run -- -x 1000 -y 1000 -e 5 -n 5 -d 8 -i 100000 --color 0,0,0 -t 4.7
a pentagon with a jump of 5/8 and rotated by 4.7 radians

Vicsek fractal
cargo run -- -x 2000 -y 2000 --points 0 0 1999 0 0 1999 1999 1999 1000 1000 -n 2 -d 3 --iter 10000000 --color 0,0,0
a square with a point in the centre with a jump of 2/3

Sierpinski carpet
cargo run -- -x 2000 -y 2000 --points 0 0 1999 0 0 1999 1999 1999 0 1000 1000 0 1999 1000 1000 1999 -n 2 -d 3 --iter 10000000 --color 0,0,0
a square with points in the midpoint of the 4 sides with a jump of 2/3

Usage: chaos_game.exe [OPTIONS]

Options:
 -x <X>                         [default: 1000]
 -y <Y>                         [default: 1000]
 -e, --equidistant <PTS>        [default: 3]
 -t, --theta <THETA>            [default: 0]
 -p, --points <COORDINATES>...
 -n, --numerator <NUM>          [default: 1]
 -d, --denominator <DENO>       [default: 2]
 -i, --iter <ITERS>             [default: 10000]
     --color <COLOR>...         [default: 255 255 255]
 -h, --help                     Print help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages