Skip to content

Commit

Permalink
Merge pull request Lartu#27 from MonotonicCode/patch-1
Browse files Browse the repository at this point in the history
Update p5.clickable.js
  • Loading branch information
zachkrall authored Jan 15, 2022
2 parents bf8bda2 + a1f01a9 commit 9250b62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/p5.clickable.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ function getTextBounds(m, font, size) {
}

//Button Class
function Clickable() {
this.x = 0; //X position of the clickable
this.y = 0; //Y position of the clickable
function Clickable(x,y) {
this.x = x; //X position of the clickable
this.y = y; //Y position of the clickable
this.width = 100; //Width of the clickable
this.height = 50; //Height of the clickable
this.color = "#FFFFFF"; //Background color of the clickable
Expand Down Expand Up @@ -181,4 +181,4 @@ function Clickable() {
}

cl_clickables.push(this);
}
}

0 comments on commit 9250b62

Please sign in to comment.