Home | History | Annotate | Download | only in gpu
      1 <!DOCTYPE html>
      2 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      3 <title>Canvas Demo</title>
      4 </head>
      5 <body>
      6 <canvas id="canv" class="output" width="600" height="400" style="width:600px;height:400px;border:2px solid #c3c3c3;">
      7  <p><b>Browser doesn't support canvas</b></p>
      8 </canvas>
      9 <script>
     10   var c = document.getElementById('canv');
     11   var ctx = c.getContext('2d');
     12   ctx.fillStyle = "#000000";
     13   ctx.fillRect(10, 10, 250, 250);
     14 </script>
     15 </body>
     16 </html>