How can I fix the ellipse in the middle / left outside of the background-window?
Here is my code until now:
void setup(){
size(100,100);
}
void draw(){
background(200);
line(mouseX,0,mouseX,100);
ellipseMode(CORNER);
ellipse(0,0,mouseX,mouseX);
}
This is the exercise in words:
Draw a line that is parallel to the y-axis and always follows the mouse. In the area between the line and the left edge, a circle should be drawn in the middle, which exactly hits the left and right.
THX!!!