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

  • ad(x), adelante(x)

    Moves the turtle x points

  • atras (x) , at (x)

    The turtle back x points

  • izquierda(x) , iz (x)

    Rotate the turtle left x degrees

  • derecha(x) , de(x)

    Rotate the turtle left x degrees

  • borrarpantalla, bp

    Will clear the screen and return the turtle home

Controlling the Pen

  • subirlapiz, sl

    Turtle stops leaving a trail

  • bajarlapiz, bl

    The turtle will leave a trail

  • poneresperatiempo(x), pet (x)

    Will set the waiting time to x milliseconds

  • espera

    Will cause the turtle to wait before executing the command

  • ponergrosor(x)

    Will set the pen width to X

  • ocultartortuga, ot

    Hide the turtle

  • mostrartortuga, mt

    Show the turtle

  • casa

    Moves the turtle to center, pointing upwards

  • ponerx(num), ponery(num)

    Move turtle to the specified location

  • ponerxy (num1,num2)

    Move turtle to the specified location

  • iponerdireccion(x), ponerd (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

  • pos, coorx, coory

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

  • direccion

    Outputs the current turtle heading

  • hacia

    Outputs the heading towards the specified [ x y ] coordinates

Loops and procedure

  • repeat x [ statements ... ]

    Repeat statements x times

  • repetircontar

    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

  • primer listname

    Outputs the first item from the list

  • salvoprimero listname , sp listname

    Outputs all the items of listname except for the first item

  • ultimo listname

    Outputs the last item from the list

  • salvoultimo listname

    Outputs all the items of listname except for the last item

  • item index list

    Outputs the indexlist item of the list or array

  • elije listname

    Outputs one item from a list, at random


  • ponercolor(x)

    Will set the turtle color accroding to the following table

    0: negro 1: azul 2: verde
    3: cian 4: rojo 5: magenta
    6: amerillo 7: blanco 8: marron
    9: tan 10: verde 11: aqua
    12: salmón 13: morado 14: naranja
    15: gris

  • ponercolor [r,g,b]

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

  • llenar

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

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

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