How do I change the size of an object with mouse

How do I change the size of an object, when the mouse is getting farther than the center of the canvas, the object gets bigger and when the mouse is getting closer to the center of the canvas, the object gets smaller

I did this Toyoya Logo and I want it to get bigger if the mouse is far form the center, and smaller if the mouse is close to the center, can someone give me a hint please

int dragX, dragY, moveX, moveY;

void setup() {
  size(500, 500);
  noStroke();
}

void draw() {
  
  if (mousePressed){
   dragX=mouseX;
   dragY=mouseY;
   noLoop();
  } else {
    dragX=pmouseX;
    dragY=pmouseY;
  }
  background(255);
  stroke(0);
  strokeWeight(20);
  noFill();
  ellipse(dragX,dragY,380,250);
  ellipse(dragX,dragY,100,250);
  ellipse(dragX,dragY-80,230,90);
}

Hello,

Check this out:
https://processing.org/reference/map_.html
https://processing.org/reference/mouseX.html

The Processing website has resources (tutorials, examples, references, etc):
www.processing.org

I use them all the time!

:)