xxxxxxxxxx
17
let inp
function setup() {
createCanvas(400, 400);
inp = createInput("hello").input(process);
console.log(inp);
}
function draw() {
background(220);
}
//define my callback function
function process(e) {
console.log(e.data);
console.log(inp.value());
}