OUCC Tutorials

How to program with OUCC's Blockly Image Task tool

flower banner

Example 2 - Make another black and white image:
Again we need to make sure that the three colour components have the same value. Here is a simpler algorithm that produces a different black and white image:

  1. Get the blue values for each pixel
  2. Replace the values of all three colour components with this blue value.

The program would look like this:
P value blocks

Try it out here:

Does the image look the same if you make all three colours have the same value as their Red values? What about if they are matched to their Green values?

<< Back | Next >>

Images Tutorial Start
Example 1 - Make an image black and white
Example 2 - Make another black and white image
Example 3 - Make the flowers yellow
Taking things further

Tutorials index

[ tutorials | terms | privacy | info@oucc.uk ]

UKCT Challenges are proud to use The Cuttle Platform to host our challenges.
The Cuttle system can be used for maths and science competitions, entrance exams or employee exams.