Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Writing an RGB colour in binary worksheet is part of the ACARA Digital Technologies Years 7–8 — Representing Text, Images and Sound journey. Print it as a booklet?
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 | |
|---|---|---|
| 111111111 10000000 00000000 | AThe bytes are in the wrong order. 11111111 is in the red position, but the 255 belongs to green, so this is pure red. | |
| 200000000 00000000 11111111 | BThe RGB colour (255, 128, 0) written as three 8-bit bytes: red, green and blue joined to make one pixel | |
| 3Each colour channel (red, green or blue) uses one byte, which is 8 bits | C255 = 11111111 | |
| 4Join the three bytes for red, green and blue in order to make one pixel | D(255, 0, 128) = 11111111 00000000 10000000 | |
| 5(255, 128, 0) = 11111111 1000000 0 | EThe bytes are not each 8 bits. The 128 is only 7 bits (1000000) and the 0 has been left as a single digit. | |
| 6(0, 255, 0) = 11111111 00000000 00000000 | FThe RGB colour (0, 0, 255), which is pure blue, written in binary |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
11111111 10000000 00000000 — The RGB colour (255, 128, 0) written in binary. Each number becomes its own 8-bit byte for red, green and blue, and the three bytes are joined together to make one pixel.Red 255 = 11111111
Green 128 = 10000000
Blue 0 = 00000000Each colour channel uses 8 bits (one byte).Red + green + blue = 3 bytes per pixel.(255, 128, 0) = 11111111 10000000 00000000(255, 0, 0) -> 11111111 00000000 00000000