p5.js how to take an input in the consonle code example
Example: p5 input
// Open your console to see the output
function setup() {
let inp = createInput('');
inp.input(myInputEvent);
}
function myInputEvent() {
console.log('you are typing: ', this.value());
}