package sk.paz1a.practicals.task1;
import java.awt.Color;
import sk.upjs.jpaz2.*;
public class Launcher {
public static void main(String[] args) {
// create new "sandbox" - a place where turtles can live
AnimatedWinPane sandbox = new AnimatedWinPane();
// create new turtle and add it to the "sandbox"
SmartTurtle franklin = new SmartTurtle();
sandbox.add(franklin);
franklin.setPosition(100, 270);
Turtle cecil = new Turtle();
sandbox.add(cecil);
cecil.setPosition(200, 150);
cecil.setPenColor(Color.RED);
SmartTurtle albert = new SmartTurtle();
sandbox.add(albert);
// create new object inspector
ObjectInspector oi = new ObjectInspector();
// ask the inspector to inspect "franklin" and "sandbox"
oi.inspect(franklin);
oi.inspect(sandbox);
oi.inspect(cecil);
oi.inspect(albert);
/*
* franklin.turn(90); franklin.step(75); franklin.turn(90); franklin.step(75);
* franklin.turn(90); franklin.step(75); franklin.turn(90); franklin.step(75);
*/
// albert.square();
// albert.dashDotDash(100);
// albert.cross(50);
albert.sun(40);
// you can put other initialization commands here
}
}