Logic Task:
Use the grid below to work out how you would logically
check the colour of each square in the grid then change red squares
to black.
How would you increment from one square to the next in a
row to check each colour? How would you increment each row to check
the entire grid? Use the row/column indices (1-13) provided to help
with this.
Points to be addressed:
- Also think about the logic needed to check for other
coloured pixels. I.e. What sort of values might you look for in
primary colours (red, green, blue)?
- What about secondary colours such as cyan, magenta or
? yellow E.g. pixels generally have red and green values that are
yellow greater than 127 and blue values that are less than
127.
Draw a flow chart diagram
1 2 3 4 5 6 7 8 9 10 11 12 13 2 4 5 7 6 1 2 3 4 5 5 5 7 8 9 10 11 12 13
Logic Task: Use the grid below to work out how you would logically check the colour of each square in the grid then chan
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Logic Task: Use the grid below to work out how you would logically check the colour of each square in the grid then chan
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!