canvas.clear(); Turtle hans = new Turtle(1); hans.home(); hans.hide(); hans.penColor(255,0,0); hans.penWidth(5); void Kreis(int x) { for (int f=1;f<=360;f++){ hans.forward(1); hans.right(1); } hans.left(90); hans.forward(50); for (int f=1;f<=360;f++){ hans.forward(x); hans.right(x); } hans.left(90); hans.forward(50); for (int f=1;f<=360;f++){ hans.forward(x); hans.right(x); } hans.left(90); hans.forward(50); for (int f=1;f<=360;f++){ hans.forward(x); hans.right(x); } hans.left(90); hans.forward(50); } void r (int g) { Kreis(1); hans.backward(5); } r(1); r(1); r(1); r(1); r(1); r(1); r(1); r(1);
ausführen