💥 Play the chaos game to create amazing fractal images
C++ CMake
Switch branches/tags
Nothing to show
Latest commit 49e640e Jul 20, 2016 @jaybosamiya committed on GitHub Add link to video
Permalink
Failed to load latest commit information.
images Update images Feb 13, 2016
.gitignore Initial Commit Feb 3, 2016
CMakeLists.txt Initial Commit Feb 3, 2016
README.md Add link to video Jul 20, 2016
chaos-game.cpp Fix declaration problem Feb 13, 2016

README.md

Chaos Game

Play the chaos game to create awesome fractal images

Screenshots

Video Demo

It has come to my notice that Yu-Jie Lin has made a nice video showing the features of this program, which can be seen on youtube here.

How it works

The tool takes takes multiple points as input from the user. Then, it assigns the centroid of these points as the initial point. Then, it iterates moving towards a random point, moving in a ratio of r taken as input.

Usage

./chaos-game
  • Left Click: Add new point
  • Right Click: Define starting point
  • Keypress x: Delete latest point
  • Keypress f: Run the chaos game
  • Keypress c: Toggle colouring
  • Keypress q: Quit

Build process

mkdir build
cd build
cmake ..
make

Requirements

  • OpenCV 2.x
  • CMake 2.8 or above

License

This software is licensed under the MIT License