import java.util.*; import java.awt.*; import turtle.*; public class Lalu extends TurtleFrame { public Lalu (String title) { super(title); } public void zeichne() { t.up(); tanze(); // aber nur, wenn keiner hinguckt t.right(90); t.forward(30);// nach rechts t.right(90); t.forward(80); //nach oben t.left(180); t.down(); rechteck(150, 150); //großes links t.up(); t.right(90); t.forward(120); //nach rechts t.right(90); t.forward(40); // nach unten t.left(180); t.down(); rechteck(150, 150); //großes rechts t.up(); t.forward(90); //nach oben t.left(90); t.forward(40); // nach links t.right(90); t.down(); rechteck(30, 30); // kleines Rechteck t.up(); t.jumpTo(-90, -180); t.down(); rechteck(50, 50); } public void tanze() { t.circleLeft(100); t.circleRight(100); } public void rechteck(double breite, double hoehe) { t.forward(breite); t.left(90); t.forward(hoehe); t.left(90); t.forward(breite); t.left(90); t.forward(hoehe); t.left(90); } public static void main(String args[]) { new Lalu("Turtle"); } }