We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hello! I have PNG with transparency, green, and white I will like to be able to change the green to another colour and the white for another.
I imagine it will go something like this
PImage myImage = loadImage("apples.jpg"); image(myImage, 0, 0); loadPixels(); get () green pixel change green pixel to x pixel get () white pixel change white pixel to y pixel updatePixels();
I am a bit confuse on how to proceed between loadPixels(); and updatePixels(); if it the right way, any help will be appreciated.