一秒に60回、感謝のこんにちは…!

こんにちは?

Canvasが全部動くか試したかっただけ

window.requestAnimationFrame = (function(){
	return window.requestAnimationFrame		||
		window.webkitRequestAnimationFrame	||
		window.mozRequestAnimationFrame		||
		window.oRequestAnimationFrame		||
		window.msRequestAnimationFrame		||
		function(callback, element){
			window.setTimeout(callback, 1000 / 60);
		};
})();

var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');


var render = function(){
   ctx.clearRect(0,0,320,240);
   ctx.fillText("こんにちは!!",Math.random()*320, Math.random()*240 );
};

function animationLoop(){
  render();
  requestAnimationFrame(animationLoop);
}
animationLoop();


普通にscriptタグ打ち始めると勝手に br 挟まれてシンタックスエラー起こるので、暫定的に eval( $('pre.code').text() )してます