Created
          June 6, 2012 07:50 
        
      - 
      
 - 
        
Save jnslxndr/2880520 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // ===================== | |
| // = 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