In this example we want to change only the background of the Duke logo. We will turn the background green and leave the rest of the logo unchanged. Since only the background pixels have a blue value of 255, we can use this condition in an if statement to identify the pixels that should change to green.
Drop your images onto the area above to make it available within your code editor on this page. Note: your images will not be uploaded anywhere, they will stay on your computer.