subject

Pointillism is the name of a painting technique where patterns of coloured dots are used to form the coloured regions of an image. For this assignment, you will practice with looping control structures to create a program that can read in a source image and create a larger 'new' version of that image (i. e., scaled up by an integer value) using a pointillist style. Your program will visit each pixel in the source image and then draw several coloured points on the larger image at corresponding (but slightly randomized) positions. • must NOT import anything other than the pygame, random, and sys libraries
• must get the name of the source image as a command-line argument
• must use nested loops to visit each pixel of the source image and get its colour value
• must use one or more loops to draw an appropriate1 number of 'points' in your 'new' image
• must randomly alter the position of the drawn 'points' in your 'new' image2
• must NOT use colours for drawing 'points' other than red, green, blue and (if you wish) black
• can assume that the user will always provide the name of a valid image when prompted


Pointillism is the name of a painting technique where patterns of coloured dots are used to form th

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Problems: 1. using textbooks, reference books, and internet as your source of research, draw the following microprocessor microarchitectures i. intel 8086 ii. motorola 68000 i atmel atmega32 iv. mips single cycle v. arm cortex-m3 write an hdl module for a hexadecimal seven-segment display decoder. the input is 4-bit binary representing a hex number (0-f), and the output is 8-bit seven segment display bits (a-h). thus, the decoder must handle the digits 10 - 15 to display a-f respectively, in addition to 0-9 numbers. 2. design a 4-bit left and right rotator (both outputs). first sketch schematic diagrams of your design. then implement your design using hdl coding. 3. 4. design a modified priority encoder that receives an 8-bit input, a7: 0 and produces a 3-bit output, y2o. y indicates the most significant bit of the input that is true. y should be 0 if none of the inputs are true. give a simplified boolean equation, sketch a schematic, and write an hdl code. 5.write an 8: 1 multiplexer module called mux8 with selection inputs s, data input d, and data output y. data input (d) and data output (v) are 32-bit wide
Answers: 3
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 2
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
You know the right answer?
Pointillism is the name of a painting technique where patterns of coloured dots are used to form the...
Questions
question
Mathematics, 31.01.2020 22:48
question
Mathematics, 31.01.2020 22:48
question
Mathematics, 31.01.2020 22:48
question
Computers and Technology, 31.01.2020 22:48
Questions on the website: 13722361