Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

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

About

No-nonsense library for automating Canvas primitives

Topics

Resources

Releases

No releases published

Packages

No packages published