Skip to content

xmas-cards/drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

drawing

draw things in your browser

You can easily set it up and export it if you want to do that.

Examples

// Create an editor
var element = document.querySelector("div"),
    settings = {};
const x = new Drawing(element, settings);
x.create();
// Undo
x.undo();

// Redo
x.redo();
// Imports an image and adds it to the history
x.import("data:image/png;base64,...", true);

// Exports everything drawn to a data URL
var exported = x.export();

About

draw things in your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published