-
[HTML5] HTML5 캔버스-사각형2012.11.10 PM 05:07
HTML5의 신기능인 캔버스입니다.
var canvas = doc-ument.getElementById("a_canvas");
var ctx = canvas.getContext("2d");
ctx.fillstyte- = "rgb(255,0,0)";
ctx.fillRect(50, 50, 200, 200);
ctx.fillstyte- = "rgba(0,0,255,0.5)"
ctx.fillRect(100, 100, 200, 200);