Skip to content

Draw extremly complicated shapes with only 2 basic rules, based on the multiplications tables.

License

Notifications You must be signed in to change notification settings

Longhinus/ModulusTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ModulusTable

Draw extremly complicated shapes with only 2 basic rules, based on the multiplications tables.

Required dependencies

  • Python 3.x
  • Python 3 MathplotLib
Debian / Ubuntu / Fedora / Red Hat: python3-matplotlib
Arch: python-matplotlib

or

pip3 install matplotlib

For more see https://matplotlib.org/users/installing.html

Tested

  • Debian sid up-to-date
  • Linux 4.14.0-1-amd64
  • Python3 3.6.4rc1
  • matplotlib 2.1.0

Usage

python3 ModulusTable.py

Some results

Modulus 200, table of 2 Modulus 200, table of 3 Modulus 360, table of 451

Mathematics constructions rules

  1. Draw a circle

Circle

  1. Choose a modulus (integer), let's call it 'p'. I chose 20, 'p=20'.

  2. Add 'p' dots on your circle. The distance between 1st and the 2nd dot have to be the same as the distance between the 2nd and 3rd dot, as for the 15th and the 16th...

Circle

  1. Choose a number 'n', it must be positive, can be a decimal. This number is the multiplication table you want to represent. I chose 2, 'n=2'.

  2. This will be the last part, now join the dots. Join the 1st dot to the 1n=2nd dot. Join the 2nd dot to the 2n=4th dot. And so on... The 11th dot will be linked with the 1st one because it's one of the modulus's properties.

Circle

  1. Now it's time to repeat it with a bigger modulus or another table. (^▽^)

Circle

Example of results, with tables incrementing by 0.02, with 25 tables showing every seconds

Video

About

Draw extremly complicated shapes with only 2 basic rules, based on the multiplications tables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages