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

  • ai(x), avanti(x)

    Moves the turtle x points

  • indietro (x) , io (x)

    The turtle back x points

  • sinistra(x) , sx (x)

    Rotate the turtle left x degrees

  • destra(x) , dx(x)

    Rotate the turtle left x degrees

  • cancellaschermo, ca

    Will clear the screen and return the turtle home

Controlling the Pen

  • pennasu, ps

    Turtle stops leaving a trail

  • pennagiù, pg

    The turtle will leave a trail

  • setwaittime(x), mt (x)

    Will set the waiting time to x milliseconds

  • wait

    Will cause the turtle to wait before executing the command

  • setwidth(x)

    Will set the pen width to X

  • nasconditartaruga, nt

    Hide the turtle

  • mostratartaruga, mt

    Show the turtle

  • casa

    Moves the turtle to center, pointing upwards

  • settax(num), settay(num)

    Move turtle to the specified location

  • settaxy (num1,num2)

    Move turtle to the specified location

  • settadirezione(x), settad (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

  • dimmixy, dimmix, dimmiy

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

  • direzione

    Outputs the current turtle heading

  • verso

    Outputs the heading towards the specified [ x y ] coordinates

Loops and procedure

  • repeat x [ statements ... ]

    Repeat statements x times

  • volteripetute

    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

  • primo listname

    Outputs the first item from the list

  • elencatranneprimo listname , etp listname

    Outputs all the items of listname except for the first item

  • ultimo listname

    Outputs the last item from the list

  • elencatranneultimo listname

    Outputs all the items of listname except for the last item

  • item index list

    Outputs the indexlist item of the list or array

  • prendi listname

    Outputs one item from a list, at random


  • settacolore(x)

    Will set the turtle color accroding to the following table

    0: nero 1: blu 2: verde
    3: ciano 4: rosso 5: magenta
    6: giallo 7: bianco 8: marrone
    9: tangente 10: verde 11: aqua
    12: salmone 13: porpora 14: arancione
    15: grigio

  • settacolore [r,g,b]

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

  • colora

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

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

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