Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created August 5, 2011 05:18
Show Gist options
  • Save gnufied/1126952 to your computer and use it in GitHub Desktop.
Save gnufied/1126952 to your computer and use it in GitHub Desktop.
move: (dx,dy) ->
if @drawingBox?
@rectPath()
@drawingBox.attr(path : @positionArray)
else
@positionArray.push(["L",@currentPos.x,@currentPos.y])
@drawingBox = @paper.path(@positionArray)
@setStrokeColor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment