All pastes #480209 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-10 04:28 UTC
rendered paste body
<window onload="run()" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
<script type="application/x-javascript">
    function run(){
     var canvas = document.getElementById("canvas");
     var ctx = canvas.getContext("2d"); 
     ctx.fillStyle = "rgba(0,0,0,0.5)";
     ctx.fillRect(0, 0, canvas.width, canvas.height);
}

</script>
        <html:canvas id="canvas" height="300"></html:canvas>
</window>