一个带有圆角和三角形的形状。
代码示例(Python):
from turtle import *
# 画一个带有圆角和三角形的形状
penup()
goto(-50, 0)
pendown()
begin_fill()
setheading(90)
circle(20, 90)
fd(100)
setheading(-90)
circle(20, 90)
fd(60)
setheading(0)
fd(60)
setheading(60)
fd(60)
setheading(-90)
fd(80)
end_fill()
done()