<canvas id ="cvs55"
width ="50"
height =
"50">
votre navigateur n'accepte pas Canvas
</canvas>
<script>
var canv55 =
document.getElementById('cvs55');
var context55 = canv55.getContext('2d');
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
// La forme standardisée
window.webkitRequestAnimationFrame
||
//
Pour Chrome et Safari
window.mozRequestAnimationFrame ||
//Pour
Firefox
window.oRequestAnimationFrame || // Pour
Opera
window.msRequestAnimationFrame ||
// Pour
Internet Explorer
function(callback){
//pour un autre
window.setTimeout(callback,
1000 /
60);
};
} )();
</script> |
|