TurtleAcademy learn programming for freeYour browser is not supporting canvasWe recomand you to use Chrome or Firefox browsers
Program total score is: 10
Output image

Basic Commands

  • vw(x), vorwärts(x)

    Moves the turtle x points

  • rückwärts (x) , rw (x)

    The turtle back x points

  • links(x) , ls (x)

    Rotate the turtle left x degrees

  • rechts(x) , rs(x)

    Rotate the turtle left x degrees

  • bildmitte, bd

    Will clear the screen and return the turtle home

Controlling the Pen

  • stifthoch, sh

    Turtle stops leaving a trail

  • stiftab, sa

    The turtle will leave a trail

  • setzewartezeit(x), swz (x)

    Will set the waiting time to x milliseconds

  • warten

    Will cause the turtle to wait before executing the command

  • breite(x)

    Will set the pen width to X

  • versteckigel, vi

    Hide the turtle

  • zeigigel, zi

    Show the turtle

  • mitte

    Moves the turtle to center, pointing upwards

  • aufx(num), aufy(num)

    Move turtle to the specified location

  • aufxy (num1,num2)

    Move turtle to the specified location

  • aufkurs(x), ak (x)

    Rotate the turtle to the specified heading

  • arc (ANGLE, RADIUS)

    Will create an arc distance RADIUS covering ANGLE angle

  • ellipse (Width , Height)

    Will craete an ellipse width Width and height Height

  • ort, ortx, orty

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

  • kurs

    Outputs the current turtle heading

  • richtung

    Outputs the heading towards the specified [ x y ] coordinates

Loops and procedure

  • repeat x [ statements ... ]

    Repeat statements x times

  • whzahl

    Outputs the current iteration number of the current repeat or forever

  • for controllist [ statements ...]

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

  • to PROCNAME inputs ... statements ... end

    Define a new named procedure with optional inputs

  • make varname expr

    Update a variable or define a new global variable. The variable name must be quoted, e.g. make 'foo 5


    access the content of VARNAME


  • list thing1 thing2 ...

    Create a new list from the inputs

  • erstes listname

    Outputs the first item from the list

  • ohneerstes listname , oe listname

    Outputs all the items of listname except for the first item

  • leztzes listname

    Outputs the last item from the list

  • ohneletztes listname

    Outputs all the items of listname except for the last item

  • item index list

    Outputs the indexlist item of the list or array

  • wähle listname

    Outputs one item from a list, at random


  • farbe(x)

    Will set the turtle color accroding to the following table

    0: schwarz 1: Blau 2: grün
    3: cyan 4: rot 5: magenta
    6: Gelb 7: weiß 8: Braun
    9: tan 10: grün 11: aqua
    12: lachs 13: violett 14: orange
    15: grau

  • farbe [r,g,b]

    Will set the turtle color accroding to the amount of red , green and blue for example setcolor [50 100 50]

  • fülle

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

  • gefüllt 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


  • sum x y

    sum x y

  • minus x y

    return the distance between x and y

  • zz(x)

    Will choose a random number between 0 - (x-1)

  • 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.