I’ve just started programming and wanted to get a perfect circle edge to jump to the mouse edge. So the center of the circle would be the center of the canvas, and the closer you get to it, the smaller the circle gets and vice versa, when your mouse enters a given point at the edge of the canvas, the circle size is increased.
I’ve gotten a somewhat reversed effect of this (but not quite):
void setup(){
size(450,320);
}
void draw(){
background(255);
strokeWeight(3);
arc(225,160,0+(pmouseY+pmouseX),0+(pmouseX+pmouseY),0,TWO_PI);
}