Getting started with kodeboard.js

To get started simply grab kodeboard.js from github and include it in your HTML5 document, preferable the head. KodeBoard is written in core JavaScript.

<script src="../src/kodeboard.js" type="text/javascript"></script>

Once included in your HTML5 document you can create a new KodeBoard within your document body.

<script type="text/javascript"> var kb = new KodeBoard(); </script>

Or when you have your own specific container div like below:

<div id="container-1" class="container"></div>

You can create your KodeBoard as follows:

<script type="text/javascript"> var kb = new KodeBoard({"container":"container-1"}); </script>

Canvas can now be accessed as follows:

var context = kb.canvas.getContext("2d");