🔔🔔🔔 "PYTHON FOR BEGINNERS" - NEW ONLINE INTERACTIVE COURSE by Vlad TUDOR 🔔🔔🔔
Free Online Turtle Graphics : logointerpreter.com - Surf your logo code!
Turtle Graphics - Arcs and Shapes

[Index] [<< Previous section: Stroking and Filling Paths] [Next section: Adding Shadow >>]

arc angle radius
Description: draws an arc of a circle, with the turtle at the center, with the specified radius, starting at the turtle's heading and extending clockwise through the specified angle.
Note: the turtle is not moving while drawing the arc.
Example 1:
arc 90 100
Example 2: drawing a circle with a radius of 50 pixels:
arc 360 50
circle radius
Description: draws a circle, with the turtle at the center, with the specified radius.
Note: the turtle is not moving while drawing the circle.
Example:
circle 50
fillcircle radius
Description: fills a circle, with the turtle at the center, with the specified radius.
Note: the turtle is not moving while filling the circle.
Example:
setfillcolor "magenta
fillcircle 50
rect width height rotation
Description: draws a rectangle with the specified width and height and the turtle at the center. If the rotation parameter is set to true, the rectangle is rotated by the turtle's heading.
Note: the turtle is not moving while drawing the rectangle.
Example 1:
left 45
rect 60 100 false
Example 2:
left 45
rect 60 100 true
fillrect width height rotation
Description: fills a rectangle with the specified width and height and the turtle at the center. If the rotation parameter is set to true, the rectangle is rotated by the turtle's heading.
Note: the turtle is not moving while filling the rectangle.
Example 1:
left 45
setfillcolor "cyan
fillrect 60 100 false

Example 2:
left 45
setfillcolor "cyan
fillrect 60 100 true


[Index] [<< Previous section: Stroking and Filling Paths] [Next section: Adding Shadow >>]
  1. Turtle Graphics section's content: Go to top
Get the new 2023 ebook!
(Surf Your Logo Code! - author: Vlad TUDOR)
Online Turtle Graphics - a free and modern web-based logo interpreter
Create an account now! It's EASY and FREE. Learn Logo & Turtle Graphics!
Find us on facebook
Get social with us!
World Map
Check other turtles
around the world!
Need help?
Browse our
support topics
Logo reference
Learn about your
turtle's language