createInput

概要

p5.jsリファレンス(参考情報)

[p5.js] createInput

サンプル

def setup
  createCanvas(100, 100)
  background('grey')
  inp = createInput('')
  inp.position(0, 0)
  inp.size(100 - 8)
  myInputEvent = Proc.new {
    background('grey')
    fill('white')
    textSize(20)
    text(inp.value, 10, 60)
  }
  inp.input(myInputEvent)
end

構文

戻値