サイト内検索

lineTo() メソッド

実行結果

コード

ctx.beginPath();
ctx.moveTo(10, 10);
ctx.lineTo(90, 90);
ctx.stroke();