Skip to content

Instantly share code, notes, and snippets.

@agmcleod
Created September 6, 2014 20:43
Show Gist options
  • Save agmcleod/7582fbcf6b06c97103a0 to your computer and use it in GitHub Desktop.
Save agmcleod/7582fbcf6b06c97103a0 to your computer and use it in GitHub Desktop.
if (me.video.isCanvas()) {
var context = renderer.getContext();
context.strokeStyle = "red";
context.lineWidth = 2;
context.strokeRect(x, y, width, height);
}
else {
renderer.setColor("red");
renderer.strokeRect(x, y, width, height);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment