Hi, Nathalie. When you get the pixels of a costume you can simply replace one pixel (whose value is an rgba list) with another one (rgba), you can even directly replace those individual numbers in the pixels list. But that list is a copy of what's inside the costume, therefore changing it does not directly affect the costume (costumes in Snap! are currently immutable). In order for any changes to take effect you can use the new costume reporter and pass the pixels list. Does that make sense to you, is that what you need?
well, it might not be the most efficient algorithm, I was doing this mostly for the example's sake. But the beauty of the "average" block is that it operates the same on numbers, lists, matrices, tensors ... thanks to hyperblocks:
If you want hyper fast pixel-wise image manipulation, hyperblocks is really the way for you! Consider this little expression that substitutes all opaque pixels with the color pink: