Skip to content

grego/integer_circle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integer Circle Explorer

Live version

Audiovisual explorer of the integer circle algorithm utilizing GPU rendering. Made using the sokol headers.

Inspired by Fractal Sound Explorer.

The algorithm

Given the parameters delta and epsilon and an initial point x, y, we iteratively update its coordinates by

x -= floor(delta * y)
y += floor(epsilon * x)
x -= floor(delta * y)

A three step rather than the more well-known two step algorithm is used, as the patterns generated by the latter display a distractive 45 degree tilt.

The points are colored based on the length of their orbits and the coordinates are fed to left and right audio channels.

Building

make

It should be possible to build this project for every platform sokol supports, however, only Linux and WebAssembly have been tried so far. To build WebAssembly, run

make integer_circle.js

Building the WebAssembly requires emscripten. Suggestions to adapt the project for simpler tooling are welcome.

License

AGPL

About

Integer Circle Explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages