subject

Whenever i try to plug in my code it will not work. i also need to add 4 more polygons and i don't know where.

import simplegui
import random
x = 500
y = 100

def draw_handler(canvas):
global x
global y
color = "rgb(100, 200, 55)"
x = x + 30
if (x > = 1000):
x = 50
canvas. draw_circle((x, y), 50, 1, color, color)

canvas. draw_circle((x, y), 50, 50, "lime")
canvas. draw_circle((x, y), 90, 60, "blue")
canvas. draw_line((x, , 45), 10, "red")
canvas. draw_line((x, , 801), 10, "orange")
canvas. draw_line((x, , 80), 10, "green")
canvas. draw_line((x, , 2), 21, "dark red")
canvas. draw_line((x, , 800), 100, "orange")
canvas. draw_line((x, , 800), 10, "red")
canvas. draw_line((x, , 600), 100, "orange")
canvas. draw_line((x, , 607), 100, "orange")
canvas. draw_line((x, , 609), 100, "orange")
canvas. draw_line((x, , -607), 50, "green")
x = 0
y = 0
def draw_handler(canvas):
global x, y
x = random. randint(0,600)
y = random. randint(0,600)
e = random. randint(0,600)
canvas. draw_circle((x, y/2), 20, 1,"black", "black")
canvas. draw_circle((x/2,y), 20, 1,"black", "black")
canvas. draw_circle((x, y+30), 20, 1,"black", "black")
canvas. draw_circle((x+70,y), 20, 1,"black", "black")
canvas. draw_circle((x, y), 20, 1,"black", "black")
for z in(50, 80, 110, 140, 170):
canvas., "black")
for w in(50,30,70,40):
canvas. draw_line((x,,e),5,"black")

frame = simplegui. create_frame("biggie cheese", 1000, 600)
frame. set_canvas_background("black")
frame. set_draw_handler(draw_handler)
frame. start()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
You know the right answer?
Whenever i try to plug in my code it will not work. i also need to add 4 more polygons and i don't k...
Questions
question
History, 29.01.2021 01:00
question
Mathematics, 29.01.2021 01:00
Questions on the website: 13722363