Created
July 25, 2012 18:18
-
-
Save zipus/3177660 to your computer and use it in GitHub Desktop.
Little canvas line
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
var canvas = document.getElementById('myCanvas'); | |
paper.setup(canvas); | |
var path = new paper.Path(); | |
// ... change this color | |
path.strokeColor = 'green'; | |
// ... change the starting point of the line | |
var start = new paper.Point(30, 92); | |
path.moveTo(start); | |
// ... change the final point | |
path.lineTo(start.add([ 885666666, -88888888 ])); | |
paper.view.draw(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment