qnimate

0.1.1 • Public • Published

qnimate

An animated colorful Voronoi diagram powered by d3.

ScreenShot

1

Live demo

https://micooz.github.io/qnimate

Try it!

Install via npm:

$ git clone https://github.com/micooz/qnimate
cd qnimate && npm i

Run in development:

$ npm start

Build and bundle:

$ npm run build

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():

document.addEventListener('DOMContentLoaded', function main() {
  var qnimate = new Qnimate({
    id: 'playground',
    width: 960,
    height: 500,
    vertices: 40
  });
  qnimate.run();
});

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.

Readme

Keywords

none

Package Sidebar

Install

npm i qnimate

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • micooz