fogleman / quads Goto Github PK
View Code? Open in Web Editor NEWComputer art based on quadtrees.
Home Page: http://www.michaelfogleman.com/static/quads/
Computer art based on quadtrees.
Home Page: http://www.michaelfogleman.com/static/quads/
I'm mostly amazed that you rewrote the entire thing in javascript for the web version.. wow
no issue.
First of all thanks for this! I'm doing some visual experiments with this but I get the following when python main.py example.png
:
1 49.6791813927697 2 44.536910327764055 3 39.91618908262801 4 39.04791319794365 5 35.82065887614508 6 32.903885446601905 7 32.326656149530756 8 31.714629322062837 10 31.140527906852704 14 30.613942522457467 18 29.42850703649822 20 28.452708100795892 26 27.83647822542313 33 26.858610254863855 43 25.775960929898222 55 25.270909080544094 67 24.678935588991983 83 24.16320784114418 84 23.433750446224078 111 22.89905634295383 161 22.390065776883368 211 21.88953562147702 283 21.379515331465882 322 20.87853839260973 429 20.37431830735203 487 19.664391058523808 589 19.159472748595544 723 18.657686967639428 834 17.949467911576072 Traceback (most recent call last): File "main.py", line 157, in <module> main() File "main.py", line 143, in main model.render('output.png') File "main.py", line 124, in render draw.rectangle(box, quad.color) File "usr/miniconda3/lib/python3.6/site-packages/PIL/ImageDraw.py", line 245, in rectangle ink, fill = self._getink(outline, fill) File "usr/miniconda3/lib/python3.6/site-packages/PIL/ImageDraw.py", line 119, in _getink fill = self.draw.draw_ink(fill, self.mode) TypeError: integer argument expected, got float
Do you know how to fix it? I'm on python 3.6.7. Many thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.