Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Pacman
<!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