How do I use input values to animate my canvas (P5.js)

I'm trying to follow this tutorial here: https://p5js.org/examples/dom-input-and-button.html

to create an animation where a ball is bounced up and down. With the variable Height as a number, the animation works, but when I try to add an input to it, it doesn't

code: https://codepen.io/anon/pen/JyzdXy

Sign In or Register to comment.