Computers and Technology

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()

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 20:10, austinwst3
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
image
Computers and Technology, 24.06.2019 22:00, sierrawalk2283
True or false technology is often discovered by accident
Answers: 2
image
Computers and Technology, 25.06.2019 03:00, samanthaurso1
Between 1932 and 1938, chester carlson developed a process that enabled a "picture" of a document to be taken and then have it reproduced on another
Answers: 1
Do you know the correct 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 in other subjects:

Konu
English, 25.04.2020 04:25