Skip to content
/ drawr Public

A small html5 canvas utils library for my drawing apps

Notifications You must be signed in to change notification settings

lucusp/drawr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

this is all pretty outdated: new readme coming soon

drawr.js

A small html5 canvas drawing library focused on user (mouse/touch) input rather than programmable input.

Just include drawr.js in your html file: <script src="../drawr.js"></script>

Then just make sure you have an html5 canvas with an id:

<canvas id="myCanvas"></canvas>

Hook drawr up to the id:

drawr.start('myCanvas');

Lastly, in the current version, start drawring (input COLOR & pen SIZE):

drawr.draw('red', 4);

That's it! You're drawring now!!

Coming Soon!

  • drawr.clear();
  • drawr.eraser();
  • drawr.disable();
  • drawr.start(canvasId, canvasWidth, canvasHeight);
  • drawr.save(save_name, save_data);
  • drawr.fill();
  • Path drawring
  • Shape selector
  • Layers
  • touch support - added 12/9/14

About

A small html5 canvas utils library for my drawing apps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published