volosati / mandalapy

Python implementation of Fronkonstin's R code for mandalas drawing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mandalapy

This is a Python port of Fronkonstin's R code: https://fronkonstin.com/2018/02/14/mandalas/

Enjoy making beautiful mandalas modifying the specified parameters to obtain different figures.

Installation

  • Checkout the repository
  • Make sure you have python 3.7+ installed and a virtual environment manager for python
  • Create a virtual environment using virtualenvwrapper or any manager of your preference
  • Install the requirements with pip install requirements

Usage

To use the code, just clone the repository into your computer. The file mandalapy.py contains the main function to draw the figures. In case you want to play with the code directly into jupyter, you can use the mandalapy_notebook.ipynb file.

Examples

Created with 4 iterations, 5 points and radius 2: Created with 4 iterations, 7 points and radius 2:

About

Python implementation of Fronkonstin's R code for mandalas drawing


Languages

Language:Jupyter Notebook 96.0%Language:Python 4.0%