pmouseX

概要

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

[p5.js] pmouseX

サンプル

# Move the mouse across the canvas to leave a trail
def setup
  # slow down the frameRate to make it more visible
  frameRate(10)
end

def draw
  background(244, 248, 252)
  line(mouseX, mouseY, pmouseX, pmouseY)
end

構文

戻値