CAN SOMEONE HELP WITH THIS PLEASE, THANKS! Project 1: Graphics, Including Donut
ID: 3910484 • Letter: C
Question
CAN SOMEONE HELP WITH THIS PLEASE, THANKS!
Project 1: Graphics, Including Donut Hole llusion with Straight Lines Carefully read this entire docuen before beginning your work. 1 Objective In this program, you'll get in introduction to using objects; we won't create our own just yet. You'll also learn aboul and use lypical graphics cuordinale syslems. Input his program gathers no input from the user 3 Output 3.1 Part 1 .Generate something very similar to the output shown at right, on a 400x400 DrawingPanel. Alter the colors tos your taste but draw on a non-white background) . Reresh yoursel o unit circle trigonometry and conversing in radians; you'll need these. 3.2 Part 2 *Create an additional drawing panel at least 600 x G00. Drawfled-in shapes of at least two lypes (rectangles, circles, etc. in at lcost two colors. * Each shape type should be drawn by its own function (that you write) with parameters indicating where it is to be drawn and how big it is to be. Include a color as a parameter as well; this will make the function more flexible. Create additional helper functions as you set. Draw many shapes 10 an attractive pattern. Do something unique and interesting, perhaps drawing a landscape or creating an eye-catching repeating geometric design. (continues...Explanation / Answer
#python 2.7
from turtle import Turtle
t=Turtle()
t.screen.bgcolor("black")
t.color("red")
t.up()
# t.goto(100,50)
t.down()
for x in xrange(1,27):
# t.left(10);
t.forward(120)
t.left(125);
t.forward(120)
t.left(125);
t.forward(120)
t.left(125);
# read()
raw_input()
t.hideturtle()
#######################
all the lines are tangents to circle
the sides are taken different for better visuals
the pattern is created by repeatedly drawing line