Created
February 6, 2014 22:14
-
-
Save orangkucing/8853574 to your computer and use it in GitHub Desktop.
7 Feb. 2014
This file contains 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
ctx.beginPath(); | |
ctx.moveTo(100, 20); | |
// line 1 | |
ctx.lineTo(200, 160); | |
// quadratic curve | |
ctx.quadraticCurveTo(230, 200, 250, 120); | |
// bezier curve | |
ctx.bezierCurveTo(290, -40, 300, 200, 400, 150); | |
// line 2 | |
ctx.lineTo(500, 90); | |
ctx.lineWidth = 5; | |
ctx.strokeStyle = 'blue'; | |
ctx.stroke(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment