Skip to content
/ flyte Public

An object model for the HTML5 canvas - a lightweight alternative to fabric.js written with ES6. Demo: https://jsfiddle.net/txstp664/3

License

Notifications You must be signed in to change notification settings

aato/flyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flyte.js

NPM version devDependency Status

Flyte.js is a framework that makes it easy to work with the HTML5 canvas element. It is an interactive object model on top of the canvas element. A lighter-weight, boiled down version of Fabric.js. Try the demo.

Usage

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <canvas></canvas>

    <script src="dist/flyte-X.Y.Z.js"></script>
    <script>
        var scene = new FScene({canvasID: 'canvas', width: 500, height: 400});

        var rect = new FRect({
          left: 10,
          top: 10,
          width: 100,
          height: 100,
          fillStyle : 'orange'
        });

        scene.add(rect);
    </script>
</body>
</html>

About

An object model for the HTML5 canvas - a lightweight alternative to fabric.js written with ES6. Demo: https://jsfiddle.net/txstp664/3

Resources

License

Stars

Watchers

Forks

Packages

No packages published