HTML 5 ALPHA

<html>
<body>
<canvas id=”ok” width=”500″ height=”500″></canvas>
<script>
var c=document.getElementById(“ok”);
var co=c.getContext(“2d”);
co.beginPath();
co.rect(100,200,200,100);
co.fillStyle=’red’;
co.fill();
co.globalAlpha=0.5;
co.beginPath();
co.arc(300,300,60,0,2*Math.PI,false);
co.fillStyle=’blue’;
co.fill();
</script>
</body>
</html>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s