Professional Documents
Culture Documents
var canvas=document.getElementById("myCanvas");
var ctx=canvas.getContext("2d");
ctx.moveTo(0,0);
ctx.lineTo(200,100);
ctx.stroke();
WebGL
Exposed through the Canvas element
Standard for a low-level 3D graphics
API based on OpenGL ES 2.0
@font-face {
font-family: 'Colaborate Light';
src: url('ColabLig.eot');
font-weight:normal;
font-style:normal;
font-variant:normal;
}
CSS3
Border-radius
gives us the coveted rounded corners
.roundcorners {
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
}
CSS3
Box-shadow
generates drop-shadows on elements