Skip to content

Instantly share code, notes, and snippets.

@nextechu
Created March 29, 2014 19:03
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 nextechu/9860937 to your computer and use it in GitHub Desktop.
Save nextechu/9860937 to your computer and use it in GitHub Desktop.
context.save();
// rotate the context to draw at an angle
// the rotation is in radians
var degrees = 55;
context.rotate(degrees * 0.01745);
context.fillText("Main St", 150, -165);
// restore the context
context.restore();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment