This commit is contained in:
A Samuel Pottinger
2022-12-10 17:31:38 +00:00
parent b59ad67181
commit c211eb133e
2 changed files with 5 additions and 5 deletions
@@ -26,16 +26,16 @@ class Button {
this.radius = radius;
}
boolean over() {
public boolean over() {
return dist(mouseX, mouseY, this.x, this.y) < this.radius;
}
void draw() {
public void draw() {
ellipse(this.x, this.y, this.radius * 2, this.radius * 2);
}
@Deprecated
void old() {
public void old() {
ellipse(this.x, this.y, this.radius, this.radius);
}
@@ -45,7 +45,7 @@ class Button {
class ButtonOther extends Button {
@Override
boolean over() {
public boolean over() {
return dist(mouseX, mouseY, this.x, this.y) < this.radius / 2;
}