Skip to content
Python module for producing quad-tree art
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
LICENSE.md
README.md
quadart.py
requirements.txt

README.md

QuadArt

Simple module for generating QuadTree art

featured in codingwithricky.com

Input Output

Image attribution: kstudio on freepik.com

Example usage through shell

Setup:

$ virtualenv --python=python3 env
$ source env/bin/activate
$ pip3 install -r requirements.txt

Run:

$ wget https://image.freepik.com/free-photo/green-apple-with-leaves_1101-453.jpg
$ ./quadart.py green-apple-with-leaves_1101-453.jpg --thresh 40

Example usage as a python module

QuadArt isn't currently a pip module, so you first need to clone it first before you can use it.

Bash:

$ git clone https://github.com/ribab/quadart

Python3:

>>> from quadart import quadart
>>> q = quadart.QuadArt()
>>> q.generate('green-apple-with-leaves_1101-453.jpg')
>>> q.display() # to display without saving
>>> q.save('green-apple-quadart.jpg') # save to file
You can’t perform that action at this time.