Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.63 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.63 KB

Generative Art

The repository contains some of my generative art. All art in the repository is generated by Python scripts using svg.py.

Installation

git clone https://github.com/orsinium-labs/generative-art.git
cd generative-art
python3 -m pip isntall svg.py

blobs.py

This is an improved port of the JS code described in Generative SVG Blob Characters.

python3 blobs.py --grid-x=4 --grid-y=3 > blobs.svg

generated art

circles.py

  1. Draw a big invisible circle (I draw a white circle, so it can be a background if you use a dark mode).
  2. Draw a second invisible inner circle with a bit shifted center.
  3. Draw a bunch of circles so they are between the two invisible circles and do not intersect.
python3 circles.py > circles.svg

generated art

illusion.py

An implementation of the famous optical illusion what color are these spheres. The image contains multiple circles of the same color that appear to have a different color. That's because our brain adjust the circle color based on the color of the strip that goes over it.

python3 illusion.py > illusion.svg

generated art

illusion_dots.py

An implementation of the famous optical illusion where dots between black squares appear to change the color between black and white.

python3 illusion_dots.py > illusion_dots.svg

generated art