Share your repls and programming experiences

← Back to all posts
flipping image / inverse
stuartmilde (1)

Hello people,

I am trying to
A) return all the red pixels of the image to 0
B) create a grey scale image by avg'ing the RGB values
C) flip the image into its inverse.

Initially I was able to remove all the red values from the image easily with my notred function, but somehow after returning to my code it no longer works.. I am puzzled by this, and would appreciate any input. The grey scale part appears to work fine, but I am stumped on the inverse part, and would appreciate any tips on how I might accomplish this.

Cheers, Stuart