Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

ww-draw

0.1.4 • Public • Published

ww-draw - a time-based drawing capture and replay library

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.

using ww-draw

npm install ww-draw pixi.js jsonfile

import * as WwDraw from 'ww-draw';

building the library and examples

npm install -g electron (required for the demos)

npm run build

npm run build:example

npm run build:example:capture

npm run build:example:canvas

npm run build:example:docs

cd electron

PixiJs replay

  • a pixijs demo of drawing replay, use:
  • electron index.js

PixiJs capture

  • a pixijs demo of drawing capture & replay, use:
  • electron index-capture.js

Canvas replay

  • a canvas-based demo of drawing replay, use:
  • electron index-canvas.js

Keywords

Install

npm i ww-draw

DownloadsWeekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

731 kB

Total Files

20

Last publish

Collaborators

  • avatar