**
Personal Art (Turtle Graphic 龟图)
**
(SC Lab1 P2(Turtle Graphic 龟图) Problem8:Personal Art)(MIT 6.031)
【系彩虹大盘盘!!!ヾ(◍°∇°◍)ノ゙】
✧✧*。٩(ˊᗜˋ*)و✧*。
public static void drawPersonalArt(Turtle turtle)
【单位长度定义】
int sideLength = 8;
int sides = 360;
【随机取色的变量(事实上决定初始取色)】
int ran = (int)(Math.random()×(10));
【单位转角:1度】
double ang=1;
int r=(int)( sideLength / (Math.sin(Math.toRadians(ang))));
PenColor c;
【循环控制:360/2/2:每个单位的夹角+两个单位之间的转角】
for(int i=0;i<sides/4;i++) {
c = PenColor.getColor(++ran);
【炫彩效果:跳过黑色和灰色(非常重要&#