# 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
マウスポインタの1フレーム前の x座標の値が格納されているシステム変数です。