Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better pause screen

  • Loading branch information...
commit b67f41cd8c3981b02242503144077b2fef75fccb 1 parent a51e47a
@doowttam authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 lostmom.js
View
13 lostmom.js
@@ -264,11 +264,14 @@ MOM = function() {
clearInterval( frameInterval );
frameInterval = null;
- context.fillStyle = 'black';
- context.font = "bold 12px sans-serif";
- context.textAlign = "right";
- context.textBaseline = "top";
- context.fillText("PAUSED", canvas.width - 20, 20);
+ context.fillStyle = 'rgba(0,0,0,.5)';
+ context.fillRect( 0, 0, canvas.width, canvas.height);
+
+ context.font = "bold 48px sans-serif";
+ context.fillStyle = "white";
+ context.textAlign = "center";
+ context.textBaseline = "middle";
+ context.fillText("PAUSED", canvas.width - canvas.width / 2, canvas.height - canvas.height / 2);
}
else {
frameInterval = MOM.play();
Please sign in to comment.
Something went wrong with that request. Please try again.