回答編集履歴
1
凡ミス修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
for (int i=0; i<n; i++) {
|
20
20
|
|
21
|
-
rect(-width, height/2*ratio, 2*width, height); 中心からheight/2*ratio離れたところに大きな四角を描いて中心より外側を隠す
|
21
|
+
rect(-width, height/2*ratio, 2*width, height); //中心からheight/2*ratio離れたところに大きな四角を描いて中心より外側を隠す
|
22
22
|
|
23
23
|
rotate(2*PI/n);//n角形の中心角分まわす
|
24
24
|
|