Skip to main content

Render and view fractals from iterated functions systems right on your terminal.

Project description

cliifs

Command Line Interface Iterated Function Systems

Render and view fractals, using the chaos game, from iterated functions systems right on your terminal.

Screenshot

Screen Shot 2019-03-24 at 9 51 06 PM

How To Use

cliifs reads in a plaintext file that contains the univariate linear functions you wish to use for your IFS.

The first line must begin with either 1D or 2D.

The following lines each represent the coefficients of linear equations, and you may add as many as you like.

See below for specifics on how to write these files.

See the included examples for more details.

Invocation example

To render the IFS stored in a file called exampleFile, move into the directory containing cliifs.py and run the command:

cliifs exampleFile

Flags

cliifs accepts the following flags

  • -h for help.
  • -c to render in random colors.
  • -i N to render using N iterations.

1 Dimensional Systems

One dimensional systems are given as a test file whose first line reads simply 1D.

Each subsequent line has the form a b which represents the function f(x) = ax+b.

2 Dimensional Systems

Two dimensional Systems are given as a test file whose first line reads simply 2D.

Each subsequent line has the form a1 b1 a2 b2 c1 c2 which represents the vector function f(v) = Av+b.

In this function, A is the matrix with rows {a1, b1} and {a2, b2}, b is the vector {c1, c2} and v is the position vector {x,y}.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cliifs, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size cliifs-0.2-py3-none-any.whl (17.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size cliifs-0.2.tar.gz (16.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page