</script> <script type="application/processing" data-processing-target="myCanvas"> // キャンバスのサイズ size(480, 320); // 点を描く // point(x, y) point(50, 50); point(120, 120); point(300, 250); // 直線を描く // line(1x, 1y, 2x, 2y) line(0, 200, 300, 50); line(400, 200, 100, 50); line(200, 300, 300, 20); // 線幅 strokeWeight(20); // 線の端のスタイル strokeCap(ROUND); line(20, 230, 80, 230); strokeCap(SQUARE); line(20, 260, 80, 260); strokeCap(PROJECT); line(20, 290, 80, 290);