#09:多角形 - beginShape()、vertex()、endShape()
このチャプターでは、複数の頂点をもつ複雑な図形の描画方法について学習します。
circle()
https://processing.org/reference/circle_.html
rect()
https://processing.org/reference/rect_.html
background()
https://processing.org/reference/background_.html
colorMode()
https://processing.org/reference/colorMode_.html
strokeWeight()
https://processing.org/reference/strokeWeight_.html
beginShape()
https://processing.org/reference/beginShape_.html
vertex()
https://processing.org/reference/vertex_.html
endShape()
https://processing.org/reference/endShape_.html
size(400, 400);
colorMode(HSB, 360, 100, 100);
background(76, 69, 70);
strokeWeight(10);
circle(40, 80, 35);
circle(200, 60, 35);
circle(360, 80, 35);
rect(100, 315, 200, 30);
size(400, 400);
colorMode(HSB, 360, 100, 100);
background(76, 69, 70);
strokeWeight(10);
beginShape();
vertex(100, 300);
vertex(50, 100);
vertex(155, 180);
vertex(200, 80);
vertex(245, 180);
vertex(350, 100);
vertex(300, 300);
endShape(CLOSE);
circle(40, 80, 35);
circle(200, 60, 35);
circle(360, 80, 35);
rect(100, 315, 200, 30);