« 逆引きクイックリファレンスJS - cbook24 - | メイン | MZ-700 FPGA サイト »
2005年10月23日
Opera 9β1
Opera 9β1ではCANVASをサポートしているので、そのうち本屋に並ぶ逆引きQuickReference JavaScriptに掲載されているcanvasでグラフィック処理をするサンプルは全部動作します(しました)。
function drawPoint()
{
canvasObj = document.getElementById("imgCanvas");
conObj = canvasObj.getContext("2d");
x = Math.floor(Math.random() * 320);
y = Math.floor(Math.random() * 240);
conObj.fillStyle = "rgba(255,0,0,0.5)";
conObj.fillRect(x,y,4,4);
}
投稿者 openspc : 2005年10月23日 17:33