Computers and Technology

Copy and paste the following code into the programming environment below and work through the exercises.
import simplegui
import random
frameWidth - 500
def draw_handler(canvas):
for i in range (1, 3000):
r = random. randint(0,255)
9 - random. randint(0,255)
b - random. randint(0,255)
randRGB Color - "RGBC" + str(n) + "," + str(9) + "," + str(b) + ")"
x = random. randint(2, frameWidth)
y = random. randint(2, frameWidth)
canvas, draw_point((x, y), randRGBColor)
frame - simplegui. create_frame('Howdy - I love this program', frameWidth, frameWidth)
backg - "RGB(" + str(255) + "," + str(255) + "," + str(255) + ")"
frame. set_canvas_background(backg) + do it once instead of thousands upon thousands of time
5
frame. set_draw_handler(drow_handler)
frame. Start

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:00, Albertrami9019
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
image
Computers and Technology, 23.06.2019 14:00, camiserjai1832
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, jasssp
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
Do you know the correct answer?
Copy and paste the following code into the programming environment below and work through the exerc...

Questions in other subjects:

Konu
English, 28.09.2019 10:30