Hi!!
Just started using Processing and I’m having a hard time with my transparent jpg… I have a code for interactive mouseY but because the background is transparant you can see the previous mouse movement (what I don’t want visible). It must be an easy fix but I don’t know how. Pls help me
PImage a;
PImage b;
void setup(){
size (100, 100);
background (255);
a = loadImage ("boven-01.png");
b = loadImage ("onder-01.png");
}
void draw(){
image (a,0,0,100,mouseY);
image (b,0,mouseX,100,height-mouseY);
}