HTML5 Canvas Draw a Line
HTML5 Canvas Draw a Line
Draw a Line
Example
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.moveTo(0,0);
ctx.lineTo(200,100);
ctx.stroke();
|
댓글을 작성하시려면 로그인이 필요합니다.