I am hoping to know how to write a program that changes the pixels of an image to different colors (ideally it would loop through r,g,b for a variety of colors)
tint is not giving the desired effect I want.
say if the image is green, I would want the program to change its pixels to shades of red, blue, green, orange, brown, yellow etc. thanks!
PImage amzbox;
PImage logo;
PImage bckgrd;
void setup(){
size(1000,displayHeight);
amzbox = loadImage(“amzbox.png”);
logo = loadImage(“amznlogo.png”);
bckgrd = loadImage(“amzbackg.png”);
image(logo,0,-50);
}
void draw(){
run();
}
void run(){
image(bckgrd,0,-50);
image(amznbox,0,-50);
// tint(random(255), random(255),random(255));
}