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

  • קד(x), קדימה(x)

    Moves the turtle x points

  • אחורה (x) , אח (x)

    The turtle back x points

  • שמאלה(x) , שמ (x)

    Rotate the turtle left x degrees

  • ימינה(x) , ימ(x)

    Rotate the turtle left x degrees

  • נקהמסך, נמ

    Will clear the screen and return the turtle home

Controlling the Pen

  • הרםעט, הרע

    Turtle stops leaving a trail

  • הורדעט, הוע

    The turtle will leave a trail

  • קבעזמןהמתן(x), קזה (x)

    Will set the waiting time to x milliseconds

  • המתן

    Will cause the turtle to wait before executing the command

  • שנהרוחב(x)

    Will set the pen width to X

  • החבאצב, הח

    Hide the turtle

  • הצגצב, הצ

    Show the turtle

  • הביתה

    Moves the turtle to center, pointing upwards

  • קבעמיקוםאפקי(num), קבעמיקוםאנכי(num)

    Move turtle to the specified location

  • קבעמיקוםצב (num1,num2)

    Move turtle to the specified location

  • כווןראש(x), כר (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

  • מיקום, מיקוםאפקי, מיקוםאנכי

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

  • לאן

    Outputs the current turtle heading

  • כיצדלהגיע

    Outputs the heading towards the specified [ x y ] coordinates

Loops and procedure

  • repeat x [ statements ... ]

    Repeat statements x times

  • מונהחזרה

    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

  • ראשון listname

    Outputs the first item from the list

  • בליראשון listname , בר listname

    Outputs all the items of listname except for the first item

  • אחרון listname

    Outputs the last item from the list

  • בליאחרון listname

    Outputs all the items of listname except for the last item

  • item index list

    Outputs the indexlist item of the list or array

  • בחר listname

    Outputs one item from a list, at random


  • שנהצבע(x)

    Will set the turtle color accroding to the following table

    0: שחור 1: כחול 2: ירוק
    3: סיין 4: אדום 5: מגנטה
    6: צהוב 7: לבן 8: חום
    9: טנגנס 10: ירוק 11: aqua
    12: סלמון 13: סגול 14: כתום
    15: עפור

  • שנהצבע [r,g,b]

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

  • צבערקע

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

  • צבערקענוצר 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

  • אקראי(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.