8.8: Events “changed” and “input” – p5.js Tutorial

This video examines how to trigger an event whenever a text input field or slider changes.

Next video:

Support this channel on Patreon:


Send me your questions and coding challenges!:

Link to code on Github:


For More p5.js Videos:

Help us caption & translate this video!


6 responses to “8.8: Events “changed” and “input” – p5.js Tutorial”

  1. Bradley Stone Avatar

    Something's wrong… "11913: Uncaught TypeError: Cannot read property 'bind' of undefined"

  2. Danbo Avatar

    LOL, texmex.. nah too spicy

  3. Amit Verma Avatar

    why there is no semi colon after the line of code which is there inside the updatesize function ?

  4. Victor Ferreira da Silva Avatar

    The function input does not work.

    Uncaught TypeError: textbox.input is not a function
    at setup (sketch.js:12)
    at p5.<anonymous> (p5.js:11132)
    at p5.<anonymous> (p5.js:11083)
    at new p5 (p5.js:11330)
    at _globalInit (p5.js:7900)

  5. Hawxxer Avatar

    Why does this work? You put your code in setup(), I thought the browser would only run setup() function once?

  6. BaconKwagga Avatar

    this stuff only works with .changed(), not with .input()
    input gives me this error – 11: Uncaught TypeError: undefined is not a function
    i don't know why. the code is identical. you're missing a ; on line 16 and it works for you.
    ps – .input() worked for me in the 7.5 video

Leave a Reply

Your email address will not be published. Required fields are marked *