18.6. Changing Step 3: Changing which data we use

Below is a selection of images that you can use in the programs in this section.

We can also change which part of the picture we read and manipulate. When we are changing several colors at once we can create a new pixel with the desired color using Pixl(red,green,blue) as shown below on line 20.

What happens if we skip every other x and y as we manipulate the colors? Maybe make the green 255 and the blue 0?

Let’s try side-to-side copying.

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

Copy the pixels in the top left quadrant to the the bottom right quadrant. Look at the picture above for the expected result.

You have attempted 1 of 7 activities on this page