<!DOCTYPE html> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | |
<title>Canvas Demo</title> | |
</head> | |
<body> | |
<canvas id="canv" class="output" width="600" height="400" style="width:600px;height:400px;border:2px solid #c3c3c3;"> | |
<p><b>Browser doesn't support canvas</b></p> | |
</canvas> | |
<script> | |
var c = document.getElementById('canv'); | |
var ctx = c.getContext('2d'); | |
ctx.fillStyle = "#000000"; | |
ctx.fillRect(10, 10, 250, 250); | |
</script> | |
</body> | |
</html> |