Last active
September 13, 2015 01:20
-
-
Save startselect/5c833fcf41f08e912b42 to your computer and use it in GitHub Desktop.
Pacman
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>PacMan</title> | |
</head> | |
<style type="text/css"> | |
</style> | |
<body> | |
<canvas id="pacman" width="300" height="150"> | |
canvasがサポートされていません。 | |
</canvas> | |
<script type="text/javascript"> | |
var cv= document.getElementById("pacman"); | |
var ctx = cv.getContext("2d"); | |
ctx.fillStyle="#FF0000"; | |
ctx.fillRect(20,20,150,100); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment