ww-draw is a time-based drawing library for capturing and replaying multi-layered, multi-author drawings - as they were drawn. Included is a json file format for storing captured data.
npm install ww-draw pixi.js jsonfile
import * as WwDraw from 'ww-draw';
see: https://github.com/wwlib/ww-draw-example/
npm install -g electron (required to run the examples)
npm install -g webpack (required to build the library and examples)
npm run build
npm run build:example
npm run build:example:capture
npm run build:example:canvas
npm run build:example:docs
cd electron
- a pixijs demo of drawing replay, use:
electron index.js
- a pixijs demo of drawing capture & replay, use:
electron index-capture.js
- a canvas-based demo of drawing replay, use:
electron index-canvas.js