繪制玫瑰
阿新 • • 發佈:2017-10-28
turtle logs end circle python col clas begin ()
from turtle import * setup(900, 700, 50, 20) penup() seth(90) fd(180) seth(0) pendown() fillcolor("red") begin_fill() circle(60, 20) circle(5, 120) circle(30, 40) circle(30, 50) circle(5, 110) circle(60, 55) circle(10, 130) circle(70, 70) seth(-80) fd(50) seth(130) fd(15) seth(-110) circle(90, 120) seth(25) circle(90, 110) fd(10) seth(-100) fd(30) seth(120) circle(270, 12) seth(-180) circle(40, -65) seth(-100) end_fill() fd(50) seth(-120) circle(200, 28) seth(30) circle(50, 120) fd(10) circle(100, 37) penup() seth(130) fd(15) seth(-110) circle(90, 120) pendown() seth(-100) circle(180, 50) fd(160) penup() left(180) fd(160) right(70) pendown() fillcolor("green") begin_fill() fd(50) left(180) fd(30) seth(0) circle(30, 120) seth(180) circle(30, 120) seth(-120) fd(20) penup() seth(-50) fd(50) pendown() fillcolor("green") begin_fill() seth(150) circle(30, 120) seth(-30) circle(30, 120) seth(210) fd(30) end_fill() exitonclick()
繪制玫瑰