🐒 Turtle Logo by Dev. Givanildo B. Godinho v4.0 β€” English Edition

foreground
🎨 Fill Colors (0–9)
0Black 1Brown 2Red
3Orange 4Yellow 5Green
6Blue 7Violet 8Gray
9White fill N to flood-fill
Hello! Type a command and press Enter.
No functions loaded.

🐒 Movement

forward Nmove forward N pixels
back Nmove backward N pixels
right Aturn right A degrees
left Aturn left A degrees
penuplift pen (stop drawing)
pendownlower pen (start drawing)
hideturtlehide the turtle
showturtleshow the turtle
goto X Yjump to math coordinate
axes Edraw axes, set :scale
fill Nflood-fill with color N

πŸ–ΌοΈ Layers

foregroundactivate animation layer (default)
backgroundactivate static layer
cleardrawclear active layer, turtle stays
clearscreenclear both layers, go to center
wait Npause N milliseconds
-- Fixed axes + animated gear: background axes 40 foreground hideturtle repeat 9999 [ cleardraw penup goto 0 0 pendown gear 70 12 14 wait 40 right 2 ] showturtle

πŸ“ Expressions β€” use ( )

^power / exponent
sqrt( )square root
sin( ) cos( )degrees
abs( ) PIabsolute value / pi
forward ( 3 ^ 2 + 4 ^ 2 ) ^ 0.5 goto ( :x * 40 ) ( 0 - ( :x ^ 2 ) * 40 )

πŸ“¦ Variables

set name 10create variable
forward :nameuse variable
make name = :name + 5update variable
set d 5 repeat 80 [ forward :d right 91 make d = :d + 2 ]

πŸ” Repeat & Functions

-- Repeat a block: repeat 6 [ forward 80 right 60 ] -- Define a function: to square :side repeat 4 [ forward :side right 90 ] end -- Call it: square 100

πŸ’‘ Examples

-- Triangle repeat 3 [ forward 150 right 120 ] -- Five-pointed star repeat 5 [ forward 100 right 144 ] -- Polygon with N sides to polygon :n :size repeat :n [ forward :size right ( 360 / :n ) ] end -- Flower petal to petal :size repeat 90 [ forward :size right 1 ] repeat 90 [ forward :size left 1 ] end to flower :size :n repeat :n [ petal :size right ( 360 / :n ) ] end