Cursor clipping mask

Hello, I need to create a program like the one in the video that I leave below, it is about 2 overlapping images, with a clipping mask in a circular shape handled by the mouse, which shows the outside of one image, and inside the other . And I’m not sure if it’s possible to make, thanks!

https://www.youtube.com/watch?v=RorkBlgz0vQ&feature=youtu.be&ab_channel=MatiasPesce

At the moment I could insert the 2 images and create the ellipse that the mouse follows, the only thing missing is that the ellipse works as a clipping mask:

PImage fondo1, fondo2;
PImage mask;

void setup(){
  
  size(1920, 1080);
  
  fondo1 = loadImage("1.jpg");
  fondo2 = loadImage("2.jpg");
  
  frameRate(60);
}

void draw(){
  
  background(fondo2);
  image(fondo1, 0, 0);
  
  ellipse(mouseX, mouseY, 200, 200);
  noStroke();
}