Turtles can only turn or move forward with or without drawing. To draw an 
arc, you'll need to combine these methods to do that.

I highly recommend the book *Turtle Geometry* by Abelson and diSessa 
<https://www.amazon.com/Turtle-Geometry-Mathematics-Artificial-Intelligence/dp/0262510375>.
 
Below you can find an excerpt of the book that talks about drawing circles 
and arcs.

[image: turtle.PNG]

Here's an implementation of a circle in Racket using the turtle library you 
referenced.

#lang racket

(require graphics/turtles)

(turtles #t)

(for ([i (in-range 360)])
  (draw 1)
  (turn 1))

On Monday, February 1, 2021 at 5:54:05 PM UTC-6 zhuo...@gmail.com wrote:

> I am imitating the Logo API to draw some shapes with `graphics/turtles`, 
> but in it I only find functions to draw lines, is there a way to draw an 
> arc?
>
>
>
> Greetings.
>
> Killian Zhuo (KDr2, https://kdr2.com)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/aea4ad53-162e-4924-87ed-1e7311c2aef3n%40googlegroups.com.

Reply via email to