http://www.calormen.com/jslogo/
Programmbeispiel:
to polygon :n
repeat :n [ fd 100 rt 360/:n ]
end
clearscreen
hideturtle
polygon 8
Die Anzahl der Ecken kann variiert werden: 3,4,5,6,7,8
Etwas zum Probieren:
cs
pu
bk 25
pd
lt 90
ht
repeat 3 [fd 36 rt 120]
repeat 4 [fd 36 rt 90]
repeat 5 [fd 36 rt 72]
repeat 6 [fd 36 rt 60]
repeat 7 [fd 36 rt 51.42858]
repeat 8 [fd 36 rt 45]
repeat 9 [fd 36 rt 40]
repeat 10 [fd 36 rt 36]
Ein ähnlicher Interpreter:
http://turtleacademy.com/learn.php
Keine Kommentare:
Kommentar veröffentlichen