| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package example.turtlelogo; |
||
| 6 | public class Alef { |
||
| 7 | public static void square(Turtle t, double size) { |
||
| 8 | for (int i = 0; i < 4; i++) { |
||
| 9 | t.rt(90); |
||
| 10 | t.fd(size); |
||
| 11 | } |
||
| 12 | } |
||
| 13 | |||
| 14 | public static void main(String[] args) { |
||
| 15 | SavableTerrarium terrarium = new SavableTerrarium(); |
||
| 16 | Turtle alef = new Turtle(terrarium); |
||
| 17 | square(alef, 100); |
||
| 18 | alef.tp(100, 100); |
||
| 19 | square(alef, 20); |
||
| 20 | alef.tp(550, 50); |
||
| 21 | square(alef, 300); |
||
| 22 | terrarium.drawTo("alef.png"); |
||
| 23 | } |
||
| 25 |