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, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
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
English, 29.08.2020 09:01
Questions on the website: 13722363