Skip to content
Sign upLog in
← Back to Community

how do you curve a line?

Profile icon
[deleted]

I want to make a smiley face but the smile is a curved line and I dont know how to do it. plz help

Answered by ash15khng [earned 5 cycles]
View Answer
Voters
Profile icon
AbdulwaheedJimo
Profile icon
ShiryuTANG
Profile icon
LaurenceWu
Comments
hotnewtop
Profile icon
ash15khng
  1. Please don't spam "plz answer"
  2. To curve it you could gradually change the angle.
    So instead of t.forward(50) you can do something like this?
for _ in range(50): t.forward(1) t.left(1)
Profile icon
[deleted]

@ash15khng
ThanKs!!!!!!!!!

Profile icon
Codejira

turtle.circle is able to draw arcs: Python Doc: turtle.circle

There are many tutorials on turtle. This one even contains a Smiley face.

To keep things simple they split the arc in two, both parts starting from the lowest point and going half the desired angle in opposite directions.

Profile icon
[deleted]

plz answer plz answer plz answer

Profile icon
[deleted]

plz answer plz answer plz answer

Profile icon
[deleted]

plz answer plz answer plz answer plz answer plz answer plz answer