Turtle Nancy = new Turtle(1); canvas.clear(); Nancy.home(); Nancy.hide(); int r = 255; int g = 0; int b = 0; int a = 1; int c = 1; int d = 0; int x = 0; int z = 0; while (x<=7) { Nancy.left(z); d=0; while (d<=360) { Nancy.penColor(r,g,b); Nancy.forward(a); Nancy.right(c); d++; } z+=45; x++; }
ausführen