📜  p5 输入 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:02.932000             🧑  作者: Mango

代码示例1
// Open your console to see the output
function setup() {
  let inp = createInput('');
  inp.input(myInputEvent);
}

function myInputEvent() {
  console.log('you are typing: ', this.value());
}