PImage pattern;
PImage minion;
PImage banana;
float angle = 0;
float offset = 0;
void setup() {
size(700, 700);
minion= loadImage(“minion.jpg”);
banana = loadImage(“banana.png”);
}
void draw() {
background(255);
imageMode(CENTER);
pushMatrix();
translate(350, 350);
rotate( radians(angle) );
image(minion, 10, 1);
minion.resize(300,350);
//float dx = (mouseX-bnw.width/2) – offset;
// tint(255, 127); // Display at half opacity
//image(bnw, offset, 0);
popMatrix();
imageMode(CENTER);
pushMatrix();
translate(550, 250);
rotate( radians(angle) );
imageMode(CENTER);
image(banana,0,0);
banana.resize(100,100);
//translate(90,90);
popMatrix();
angle += 1;
}