Font size
WorksheetsInstagram style filters with Python
Total questions: 10
Worksheet time: 12mins
What's the width of the resized image?
(a)
What colour has been made here?
yellow
pink
white
black
if the first number is increased by 10%
the image will look "cooler"
the image will look "warmer"
the size of the image will change
the image will be cropped
How does this code make sure the whole image is worked on?
moves from the left, one column at a time. for each column it works its way from top to bottom. then it moves one pixel to the right goes top to bottom again
starts at the top. moves from left to right. when the top row is finished, moves down a line. then goes left to right and so on...
What will this code do? (select all that apply)
for every pixel,
increase the amount of red
leave the green as it is
reduce the amount of red
reduce the amount of blue
have a look at this code.
it uses min(). min provides the lower of two numbers. eg min(45,50) would give 45. why is it used here?
to make each pixel warmer
to make the smallest amount of change
by multiplying the colour by 1.2 might make the answer more than 255 so it in that case it uses 255
if you're still reading this, this one is not the answer
what's been done here?
255-original colour for R,G and B
add 10% to red, subtract 10% from blue
subtract 50 from each of R, G and B
what did this do? (select 3)
red value became blue value
yellow value became green value
green value became red value
blue value became green value
On your Colaboratory worksheet this one was called "swapping some (a) around"
challenge question:
this examines the surrounding pixels.
brighter pixels will be emphasised, especially if their neighbours are darker
it is purely random
the brightness of each neighbour is simply added together and an average used
