<!DOCTYPE html>
<html>
<body>
<canvas width= "400" height= "400" id= "c" ></canvas>
<script type= "text/javascript" >
if ( window . WebGLRenderingContext )
{
var canvas = document . getElementById ( "c" );
var gl = canvas . getContext ( "experimental-webgl" );
gl . clearColor ( 1.0 , 0.0 , 0.0 , 1.0 );
gl . clear ( gl . COLOR_BUFFER_BIT );
}
</script>
</body>
</html>
<html>
<body>
<canvas width= "400" height= "400" id= "c" ></canvas>
<script type= "text/javascript" >
if ( window . WebGLRenderingContext )
{
var canvas = document . getElementById ( "c" );
var gl = canvas . getContext ( "experimental-webgl" );
gl . clearColor ( 1.0 , 0.0 , 0.0 , 1.0 );
gl . clear ( gl . COLOR_BUFFER_BIT );
}
</script>
</body>
</html>