Created
November 15, 2013 21:56
-
-
Save ashumeow/7492321 to your computer and use it in GitHub Desktop.
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
var my_canvas = document.getElementById("canvas"); | |
var context = my_canvas.getContext("2d"); | |
context.beginPath(); | |
context.arc(75,75,35,0,2*Math.PI); | |
context.fillStyle = "red"; | |
context.fillRect(10, 10, 50, 20); | |
context.font = "30px Garamond"; | |
context.fillText("Hello!",15,175); | |
context.stroke(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment