Created
November 3, 2017 20:41
-
-
Save lizzybrooks/54045563e4e8321718cc40297db999f9 to your computer and use it in GitHub Desktop.
How to make a button that is an image in p5.js
How to scale this button to correct size????
How to scale this button to correct size????
button.width = (Width in pixels)
button.height = (Height in pixels)
@ManavNayak
I am unable to correct the size of the button plz help
button.size();
How to scale this button to correct size????
// size(width, height), just one of them could be AUTO, or you can set them to numbers as pixels.
// For more info https://p5js.org/reference/#/p5.Element/size
button.size(AUTO, this.height);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool! Thanks for posting!