Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
node_modules
src
.gitignore
README.md
grunt.js
package.json

README.md

Cactus Draw

Cactus Draw is an open-source collaborative drawing app that grew out of DesertJS Hackathon.

How to Use

  1. Reference jQuery (such as on Google's CDN)

  2. Reference the css file: http://cactusdraw.com/cactusdraw.min.css or http://cactusdraw.com/cactusdraw.css

  3. Reference the javascript file: http://cactusdraw.com/cactusdraw.min.js or http://cactusdraw.com/cactusdraw.js

  4. Create a div:

    a. class="cactusdraw"

    b. data-room="some-unique-name"

    c. data-writable="true"

    Make the canvas read-only by setting data-writable="false"

    d. other styles to taste (width, height, border, etc)

Sample

<div class="cactusdraw" data-room="public" data-writable="true"></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <link rel="stylesheet" href="http://cactusdraw.com/cactusdraw.css" type="text/css" /> <script src="http://cactusdraw.com/cactusdraw.js"></script>

License

Copyright (c) 2012 Rob Richardson
Licensed under the MIT license.

Something went wrong with that request. Please try again.