Skip to content

Instantly share code, notes, and snippets.

@jnslxndr
Created June 6, 2012 07:50
Show Gist options
  • Save jnslxndr/2880520 to your computer and use it in GitHub Desktop.
Save jnslxndr/2880520 to your computer and use it in GitHub Desktop.
// =====================
// = Canvas Sandbox :) =
// =====================
$('<canvas id="mein-canvas"></canvas>').prependTo('body')
$('#mein-canvas').paper(function(event) {
// draw dots 10px by 10px away from the click point
this.onMouseDown = function(event) {
console.log("lkjaskdjk")
var point = new paper.Point(10, 10)
var circle = new paper.Path.Circle(event.point.add(point), 5);
circle.fillColor = 'red';
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment