玫瑰花

Posted 丁希慧

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了玫瑰花相关的知识,希望对你有一定的参考价值。


import turtle
turtle.setup(0.5,0.75)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.left(90)
turtle.penup()
turtle.fd(100)
turtle.pendown()
print(turtle.pos())
turtle.right(90)
turtle.circle(6,180)
turtle.circle(20,70)
turtle.seth(305)
turtle.circle(20,150)
turtle.seth(150)
turtle.circle(40,80)
turtle.seth(275)
turtle.fd(23)
print(turtle.pos())
turtle.seth(140)
turtle.fd(5)
turtle.seth(250)
turtle.circle(50,120)
turtle.seth(40)
turtle.circle(65,85)
turtle.seth(240)
turtle.fd(13)
print(turtle.pos())
turtle.seth(110)
turtle.circle(72,17)
print(turtle.pos())
turtle.penup()
turtle.goto(0.00,100.00)
turtle.pendown()
turtle.end_fill()
turtle.penup()
turtle.goto(15.52,111.61)
turtle.pendown()
turtle.seth(270)
turtle.circle(-100,20)
turtle.circle(60,43)
turtle.penup()
turtle.goto(-31.12,80.21)
turtle.pendown()
turtle.circle(80,40)
turtle.circle(-30,60)
turtle.circle(100,40)
print(turtle.pos())
turtle.circle(-120,25)
print(turtle.pos())
turtle.circle(-200,20)
turtle.penup()
turtle.goto(49.27,-47.94)
turtle.pendown()
turtle.seth(20)
turtle.fd(10)
turtle.begin_fill()
turtle.color("black","green")
turtle.seth(90)
turtle.circle(-30,130)
turtle.seth(260)
turtle.circle(-35,110)
turtle.end_fill()
turtle.seth(12)
turtle.circle(70,37)
turtle.penup()
turtle.goto(75.63,-92.70)
turtle.pendown()
turtle.seth(175)
turtle.fd(10)
turtle.begin_fill()
turtle.color("black","green")
turtle.seth(120)
turtle.circle(25,130)
turtle.seth(310)
turtle.circle(27,110)
turtle.end_fill()
turtle.seth(200)
turtle.circle(-60,35)


 

 

以上是关于玫瑰花的主要内容,如果未能解决你的问题,请参考以下文章

MATLAB 3D玫瑰花绘制(内附旋转版本)

MATLAB 3D玫瑰花绘制(内附旋转版本)

玫瑰庄园模式系统开发怎么样的?源代码

前端 玫瑰花小样式

玫瑰花的绘制

用python画一朵玫瑰花