Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1rgb(255, 0, 0) | Argb(255, 255, 255) | |
| 2rgb(0, 0, 255) | Brgb(200, 30, 30) and rgb(198, 32, 31) | |
| 3An eyedropper picked a pixel and showed that red, green and blue are all 255, so the pixel is white | COnly two numbers are given. An eyedropper always shows three numbers for a pixel: red, green and blue. | |
| 4Comparing two neighbouring pixels: the first reads rgb(200, 30, 30) and the next reads rgb(198, 32, 31), so they are almost the same colour | DThe numbers a pixel viewer shows for a pure blue pixel: no red, no green, full blue | |
| 5rgb(300, 20, 40) | EThe red number is 300, but each RGB number stored for a pixel must be between 0 and 255. An eyedropper would never show 300. | |
| 6rgb(255, 0) | FThe numbers an eyedropper shows for a pure red pixel: full red, no green, no blue |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
eyedropper — A tool that picks one pixel in an image and shows the red, green and blue numbers (0 to 255) stored for it, such as rgb(255, 0, 0) for pure red.colour = eyedropper(photo, 40, 25)rgb(255, 0, 0)rgb(255, 255, 0)left = eyedropper(photo, 5, 5)
right = eyedropper(photo, 6, 5)middle = colour.green