qnimate
An animated colorful Voronoi diagram
powered by d3.
Live demo
https://micooz.github.io/qnimate
Try it!
Install via npm:
1 | git clone https://github.com/micooz/qnimate |
Run in development:
1 | npm start |
Build and bundle:
1 | npm run build:prod |
Usage
HTML:
<div id=""playground""></div>
js:
<script src=""qnimate.min.js""></script>
Qnimate
will be exposed to window
, create an instance of Qnimate
, pass an option object and then call run()
:
1 | document.addEventListener('DOMContentLoaded', function main() { |
Acknowledgments
d3.voronoi
- https://github.com/d3/d3-voronoi
Known issues
- New triangle appears suddenly.
- White triangle appears from time to time.
Any advice?
Send me issue.