Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Der Titel des Dokuments</title>
</head>
<body>
<canvas id="myCanvas">Ihr Browser unterstützt das HTML5-Element canvas nicht.</canvas>

<script>
var c=document.getElementById('myCanvas');
var ctx=c.getContext('2d');
ctx.fillStyle='#ff9311';
ctx.fillRect(10,50,80,80);
</script>
</body>
</html>