L2 Slides - Representations - Going Audiovisual - Y9

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Save a copy

Lesson 2:
A splash of colour
Year 9 – Data representations – Representations: going audiovisual
Starter activity

Terminology: what are the missing words?

The elements of a digital image are called


and are arranged in a grid of
columns and rows.

The number of elements in a digital image


is the image .

The number of binary digits used


to represent the colour of each element is
the .
Objectives

In this lesson, you will...

● Examine how colour can be described as a mixture of red, green, and blue light
(RGB colour)
● Calculate the representation size of images
Activity 1

Colour mixing

Painters mix paint of different colours, in


different quantities, to produce new
colours.

You probably all know which colours of


paint to mix in order to produce green,
purple, or orange.

What colour do you get when you mix all


your paints together?
Activity 1

An experiment with colour

Digital painters mix light of different


colours, in different intensities, to produce
new colours.

Let’s experiment with mixing red, green,


and blue light, in order to produce yellow,
purple, or orange.

What colour do you get when you mix red,


green, and blue together?
Activity 1

An experiment with colour: reflection

Colours can be described as a mix of red,


green, and blue light, in appropriate
quantities.

To specify these quantities as numbers, we


use sequences of bits.
Activity 2

RGB colour

In practice, colour is commonly


represented using 24 bits.

The quantity of red, green, and blue in the


mix is specified using 8 bits for each of
these elementary colours.
red green blue
01010111 10100101 11101011

87 165 235
Activity 2

RGB colour

A common value for colour depth in


bitmap images is 24 bits per pixel.

The quantity of red, green, and blue for


each pixel is specified using 8 bits for each
of these elementary colours.
red green blue
11111111 10111011 01100100

255 187 100


Activity 2

How much of each colour can there be?

Minimum value of red, green, or blue (with 8 bits for each):


00000000 0

Maximum value of red, green, or blue (with 8 bits for each):


11111111 255 ⚠

Number of possible values of red, green, or blue:


256 (from 0 to 255)

Total number of possible colours:


256 ⨉ 256 ⨉ 256 = 16,777,216
Activity 2

Pick and mix colours

You will follow the instructions on the


A2 Worksheet – Pick and mix colours to
:-

• Use a colour mixer to set the values for red,


green, and blue and mix your own colours.
• Play the Colour Match game to see the
binary values for different colours
Activity 2

Pick and mix colours - answers


Activity 3

Representation size

How many bits are required to represent


an image?

resolution (rows ⨉ columns)


how many pixels are in the image

colour depth
how many bits represent the colour of
each pixel
Activity 3

Representation size

Follow the instructions on A3 Worksheet – Representation size to :


• Compute the representation size of images, given their resolution and colour depth.
Homework

Homework

Work out the colours of flags from their RGB values.


Compute the representation size of an image.
Summary

In this lesson, you... Next lesson, you will...

Examined how colour can be described as Use image editing software to manipulate
a mixture of red, green, and blue light digital images
(RGB colour)
Discuss whether or not manipulating
Calculated the representation size of images is ‘easy’, and how the answer to
images that question affects us

You might also like