mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
13 lines
274 B
HTML
13 lines
274 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<canvas id="canvas" width="200" height="200"></canvas>
|
|
</body>
|
|
<script>
|
|
var canvas = document.getElementById("canvas");
|
|
var ctx = canvas.getContext("2d");
|
|
ctx.fillStyle = "green";
|
|
ctx.fillRect(0, 0, 200, 200);
|
|
</script>
|
|
</html>
|