Skip to content

A basic implementation of the chaos game.

License

Notifications You must be signed in to change notification settings

shumaym/Chaos_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chaos Game

This program draws fractals generated by a simple implementation of the chaos game. Visit Wikipedia for details.

Dependencies

Usage

Build with make, then run with ./chaos [OPTIONS]

Options:

  • -v N | --vertices N: Number of vertices in the polygon (default: 3)
  • -f N | --fraction N: Fraction of distance between the current point and chosen vertex to place a new point (default: 0.5)
  • -s N | --stepping N: Number of points to generate before refreshing the window (default: 2500). Greatly affects draw speed
  • -d N | --frame-delay N: Delay in ms after the window is refreshed (default: 50)
  • --dimensions XxY: Screen dimensions (default: 1000x1000)
  • -h | --help: Display the help page

Examples



About

A basic implementation of the chaos game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published