Wanting advise on how I could randomize my work more

I don’t have enough time

you mean when x,y changes, you want to keep x and y always in the center? This means you want to display it always at width/2, height/2

and translate everything by translate(-x,-y);

or something like this?

Chrisir