No-nonsense library for automating Canvas primitives
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
examples/primitives
images
src
.gitignore
README.md
TODO.md
package.json
rollup.config.js

README.md

vvector

Animate and automate Canvas primitives. Light-weight. No-nonsense. Martinis.

use

Get the minified library and include it in your project.

<script type='text/javascript' src='./path/to/vvector.min.js'></script>

A simple scene example:

var scene, circle;

// create a new scene
scene = new vv.Scene('my_canvas', {width: 600, height: 200});

// create a circle
circle = new vv.Arc({x: 100, y: 100, radius: 20, fillStyle: 'yellow', lineWidth: 2});
circle.addState({radius: 50});
circle.setAnimation({automation: 'oscillate', easing: 'ease-in-and-out'});

// add to scene
scene.add(circle);

// run!
scene.loop();

Alt text

build

git clone https://github.com/meatbags/vvector
npm install
npm run build