Skip to content

Instantly share code, notes, and snippets.

@ashumeow
Created November 15, 2013 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashumeow/7492321 to your computer and use it in GitHub Desktop.
Save ashumeow/7492321 to your computer and use it in GitHub Desktop.
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