wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Instagram style filters with Python

Total questions: 10

Worksheet time: 12mins

Name
Class
Date
1.

What's the width of the resized image?

(a)  

2.

What colour has been made here?

a)

yellow

b)

pink

c)

white

d)

black

3.

if the first number is increased by 10%

a)

the image will look "cooler"

b)

the image will look "warmer"

c)

the size of the image will change

d)

the image will be cropped

4.

How does this code make sure the whole image is worked on?

a)

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

b)

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...

5.

What will this code do? (select all that apply)

for every pixel,

a)

increase the amount of red

b)

leave the green as it is

c)

reduce the amount of red

d)

reduce the amount of blue

6.

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?

a)

to make each pixel warmer

b)

to make the smallest amount of change

c)

by multiplying the colour by 1.2 might make the answer more than 255 so it in that case it uses 255

d)

if you're still reading this, this one is not the answer

7.

what's been done here?

a)

255-original colour for R,G and B

b)

add 10% to red, subtract 10% from blue

c)

subtract 50 from each of R, G and B

8.

what did this do? (select 3)

a)

red value became blue value

b)

yellow value became green value

c)

green value became red value

d)

blue value became green value

9.

On your Colaboratory worksheet this one was called "swapping some (a)   around"

10.

challenge question:

this examines the surrounding pixels.

a)

brighter pixels will be emphasised, especially if their neighbours are darker

b)

it is purely random

c)

the brightness of each neighbour is simply added together and an average used