1-12.pmouseY
Name(名称):pmouseY//鼠标在当前帧之前的帧的垂直位置。
Examples(例子):
// Move the mouse quickly to see the difference快速移动鼠标来看看区别
// between the current and previous position在当前和以前的位置之间
void draw() {
background(204);
line(20, mouseY, 80, pmouseY);
println(mouseY + ” : ” + pmouseY);
}
Description(描述):The system variable pmouseY always contains the vertical position of the mouse in the frame previous to the current frame.
系统变量pmouseY总是包含鼠标在当前帧之前的帧的垂直位置。
For more detail on how pmouseY is updated inside of mouse events and draw(), see the reference for pmouseX.
有关pmouseY如何在鼠标事件和绘制()中更新的更多细节,请参见pmouseX的参考。
Related(相关函数):mouseX
mouseY
pmouseX
mousePressed
mousePressed()
mouseReleased()
mouseClicked()
mouseMoved()
mouseButton
mouseWheel()
- 本文固定链接: http://iprocessing.cn/2017/07/14/pmousey鼠标上一帧的垂直位置/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表