D3 Mondrian Generator
Weekend project: use D3 to generate artwork inspired by Piet Mondrian (see some examples here). A gist of the code is available at the bottom of the page; to run locally, start up a python http server in the script directory:
python -m SimpleHTTPServer
Some ideas for future improvements:
- Choose colour scheme from a drop down list
- Choose the recursion level
- Resize the box dynamically
- Animate on refresh
- Sliders for colour ratios
Hit the update button to refresh!
Enjoy Reading This Article?
Here are some more articles you might like to read next: