Turtle Academy just had a system upgrade if you experience any issues. Please try to hard refresh using CTRL + F5.

If the issues continue please contact us.

lucio

TurtleAcademy learn programming for freeYour browser is not supporting canvasWe recomand you to use Chrome or Firefox browsers
Program total score is: 181
Output image
WyattGull - vor 1 Monat
U100

Rav Lexis LALUSIN - vor 2 Monaten
repeat 8 [pu setcolor random 16 fd 50 pd arc 360 50]

Rav Lexis LALUSIN - vor 2 Monaten
[i -350 750 50] [pu setxy :i 0 pd repeat 8 [pu setcolor random 16 fd 50 pd arc 360 50] ] ht

authentication required

you musst login to post a comment

Einloggen

Einfache Befehle

vorwärts X , vw X

Bewege die Schildkröte um x Punkte

Example:

forward 50

Explained in lesson:

Logo's turtle

rückwärts X , rw X

The turtle back x points

Example:

back 50

links X , ls X

Schildkröte x Grad nach links drehen

Example:

left 90

Explained in lesson:

Logo's turtle

rechts X , rs X

Rotate the turtle right x degrees

Example:

right 90

Explained in lesson:

Logo's turtle

bildmitte , bd

Löscht die Bildfläche und bringt die Schildkröte nach Hause

Example:

cs

Explained in lesson:

Logo's turtle

changeshape X or STR , csh X or STR

Will change the turtle to another shape accordin to the following 0 = "turtle", 1 = "cat", 2 = "fish", 3 = "dog", 4 = "horse", 5 = "tiger", 6 = "crab", 7 = "snail"

Example:

csh 1 or csh "dog

Explained in lesson:

Turtle world

Steuerung des Stiftes

stifthoch , sh

Turtle stops leaving a trail

Example:

penup

stiftab , sa

The turtle will leave a trail

Example:

pendown

warten X

Will cause the turtle to wait X ( 60ths of seconds ) time before executing the command

Example:

repeat 4 [ wait 10 fd 50]

Explained in lesson:

Hi wait

breite X

Setzt die Stiftdicke auf X

Example:

setwidth 4 fd 50

Explained in lesson:

The pen width

versteckigel , vi

Schildkröte verstecken

Example:

hideturtle

zeigigel , zi

Zeige die Schildkröte

Example:

ht wait st

mitte

Bewege die Schildkröte in die Mitte, nach oben gerichtet

Example:

home

aufx NUM_x

Move turtle to the specified X location

Example:

setx 100

Explained in lesson:

Turtle world

aufy NUM_y

Move turtle to the specified Y location

Example:

sety 200

Explained in lesson:

Turtle world

aufxy NUM_X NUM_Y

Bewege die Schildkröte zur angegebenen Position

Example:

setxy 100 100

Explained in lesson:

Turtle world

aufkurs , ak

Rotiere die Schildkröte in die angegebene Richtung

Example:

sh 145

Explained in lesson:

Turtle world

bogen ANGLE RADIUS

Will create an arc distance RADIUS covering ANGLE angle

Example:

ARC 360 5

Explained in lesson:

Turtle world

ellipse WIDTH HEIGHT

Zeichnet eine Ellipse mit Breite und Höhe

Example:

ellipse 80 90

ort

Outputs the current turtle position as [ x y ], x or y respectively

Example:

pos

Explained in lesson:

The turtle answer

ortx

Outputs the current turtle position as [ x y ], x or y respectively

Example:

xcor

Explained in lesson:

The turtle answer

orty

Outputs the current turtle position as [ x y ], x or y respectively

Example:

ycor

Explained in lesson:

The turtle answer

kurs

Gibt die aktuelle Ausrichtung der Schildkröte aus

Example:

heading

richtung

Outputs the heading towards the specified [ x y ] coordinates

Example:

towards

Explained in lesson:

The turtle answer

Schleifen und Prozeduren

wiederhole X [ statements ... ]

Repeat statements X times

Example:

repeat 4 [ fd 50 rt 90]

Explained in lesson:

Loops

whzahl

Outputs the current iteration number of the current repeat or forever

Example:

repeat 4 [ repcount ]

for controllist [ statements ...]

Typical for loop. The controllist specifies three or four members: the local varname, start value, limit value, and optional step size

Example:

for [i 1 10 1] [print :i]

Explained in lesson:

The for loop

lerne PROCNAME inputs ... statements ... end

Define a new named procedure with optional inputs

Example:

to TURTLE repeat 4 [ fd 50 rt 90] end

Explained in lesson:

The turtle is learning

make varname expr

Update a variable or define a new global variable. The variable name must be quoted

Example:

make "foo 5

Explained in lesson:

Variables

: VARNAME

access the content of VARNAME

Example:

make "foo 5 repeate :foo [fd 50 rt 360 / :foo]

Listen

liste thing1 thing2 ...

Create a new list from the inputs

Example:

make "mylist (list "turtle "academy)

Explained in lesson:

Lists

erstes listname

Gibt das erste Element der Liste aus

Example:

print first :mylist

Explained in lesson:

Lists

ohneerstes listname

Outputs all the items of listname except for the first item

Example:

print butfirst :mylist

Explained in lesson:

Accessing the list

letztes listname

Gibt den letzten Eintrag der Liste aus.

Example:

print last :mylist

Explained in lesson:

Lists

ohneletztes listname

Outputs all the items of listname except for the last item

Example:

print butlast :mylist

Explained in lesson:

Accessing the list

element index listname

Outputs the indexlist item of the list or array

Example:

print item 1 :mylist

Explained in lesson:

Accessing the list

wähle index listname

Gibt ein zufälliges Element der Liste aus

Example:

print pick :mylist

Explained in lesson:

Accessing the list

Farben

farbe X
Will set the turtle color accroding to the following table
0: schwarz 1: Blau 2: lindgrün
3: cyan 4: rot 5: magenta
6: Gelb 7: weiß 8: Braun
9: tan 10: grün 11: aquamarine
12: lachs 13: violett 14: orange
15: grau

Example:

setcolor 1

Explained in lesson:

Colors and printing

farbe [r,g,b]

Will set the turtle color accroding to the amount of red , green and blue

Example:

setcolor [50 100 50]

fülle

Does a paint bucket flood fill at the turtle\'s position

Example:

cs repeear 4 [ fd 50 rt 90 ] pu setxy 50 50 pd fill

Explained in lesson:

Background

filled fillcolor [ statements ... ]

Execute statements without drawing but keeping track of turtle movements. When complete, fill the region traced by the turtle with fillcolor and outline the region with the current pen style

Example:

filled "blue [repeat 4 [fd 100 rt 90]]

Explained in lesson:

Background

Mathe

summe X Y

Will sum x+y

Example:

print sum 2 3

Explained in lesson:

Variables

minus X Y

return the distance between x and y x-y

Example:

print minus 8 2

zz X

Will choose a random number between 0 - (X-1)'

Example:

cs print sum random 10 3

Explained in lesson:

Colors and printing

modulo expr expr

Outputs the remainder (modulus). For remainder and % the result has the same sign as the first input; for modulo the result has the same sign as a the second input.

Example:

cs print modulo 10 3

Control Structure

wenn expr [statement]

Execute statment if expressoin is true

Example:

if 2>1 [print "hello]

Explained in lesson:

Colors and printing

wennsonst expr [statementTrue] [statementFalse]

Execute StatementTrue if tru else execute statementFalse

Example:

ifelse 0>1 [print "true] [print "false]

test expr

Test the specified expression save the result in the local scope for the subsequent use by iftrue iffalse

Example:

test 3>4 iftrue [print "true] iffalse [print "false]

wennwahr [statements]

Example:

test 3>4 iftrue [print "true] iffalse [print "false]

iffalse [statements]]

Example:

test 3>4 iftrue [print "true] iffalse [print "false]