Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
| gf_informatik:funktionen [2024-01-08 06:18] – hof | gf_informatik:funktionen [2024-12-02 14:09] (aktuell) – hof | ||
|---|---|---|---|
| Zeile 224: | Zeile 224: | ||
| <code python> | <code python> | ||
| - | from gturtle | + | from turtle |
| turi = Turtle() | turi = Turtle() | ||
| - | turi.hideTurtle() | + | turi.hideturtle() |
| + | turi.speed(1000) | ||
| def square(l): | def square(l): | ||
| Zeile 244: | Zeile 245: | ||
| <code python> | <code python> | ||
| - | from gturtle | + | from turtle |
| t = Turtle() | t = Turtle() | ||
| - | t.hideTurtle() | + | t.hideturtle() |
| def square(x, | def square(x, | ||
| - | t.home() | + | t.teleport(x,y) |
| - | t.setPos(x,y) | + | |
| i = 0 | i = 0 | ||
| while i < 4: | while i < 4: | ||
| Zeile 258: | Zeile 258: | ||
| def circle(x, | def circle(x, | ||
| - | t.home() | + | t.teleport(x,y) |
| - | t.setPos(x,y) | + | t.circle(r) |
| - | t.rightCircle(r) | + | |
| def rectangle(x, | def rectangle(x, | ||
| - | t.home() | + | t.teleport(x,y) |
| - | t.setPos(x,y) | + | |
| i = 0 | i = 0 | ||
| while i < 2: | while i < 2: | ||
| Zeile 274: | Zeile 272: | ||
| def triangle(x, | def triangle(x, | ||
| - | t.home() | + | t.teleport(x,y) |
| - | t.setPos(x,y) | + | |
| i = 0 | i = 0 | ||
| while i < 3: | while i < 3: | ||
| Zeile 287: | Zeile 284: | ||
| triangle(100, | triangle(100, | ||
| </ | </ | ||
| + | |||
| + | [[https:// | ||
| ++++ | ++++ | ||