Ask coding questions

← Back to all posts
how do you curve a line?
[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
LaurenceWu
Comments
hotnewtop
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?

[deleted]

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

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.

[deleted]

plz answer plz answer plz answer

[deleted]

plz answer plz answer plz answer

[deleted]

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