Kurs:KTurtle/Code-Rubrik/Triangless

From Wikiversity
Jump to navigation Jump to search

Mit diesem Programmcode kannst du...

[edit]

# draw triangle wheels

reset

learn triangle X {
  repeat 3 {  
    forward X
    turnleft 120
  }
}

for r = 1 to 30 {
  clear
  repeat 18 {
    triangle r*r*5
    tr 20
  }
  wait 1
}

wait 3
clear

print "I'm tired..."