Skip to content


Subversion checkout URL

You can clone with
Download ZIP
JavaScript library for object-based canvas drawing.
Branch: develop
Pull request Compare This branch is 92 commits behind koggdal:develop.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

oCanvas - Object-based canvas drawing

oCanvas makes canvas development easier to understand and do, by creating a bridge between the native pixel drawing approach and objects that are created and added to canvas. It is now possible to very easily create objects, change properties of these objects and add events to them — and everything just works because oCanvas handles the background stuff for you.

Building your own oCanvas

The git repo contains a build directory with a build script. That will combine all modules specified in the config file and output one file with the full source and one file with the minified source.

The script uses Node, so you need to install that first. The minification is done by UglifyJS which is included in the repo.

First you need to get your own copy of the source files, by running the following in the terminal: git clone git://

Then navigate to the build directory by running: cd ocanvas/build

Finally run the build command: node build.js

You will now have two source files in the build directory: ocanvas-x.x.x.js and ocanvas-x.x.x.min.js


All the documentation can be found at the website,

Something went wrong with that request. Please try again.