rocinantealpha

reference / input

pmouse

Where the mouse was a frame ago.

// mouse - pmouse is how far the mouse moved since the last frame:// stretched ten times, it points where the mouse is goingdraw [  background 240  line from mouse to (mouse + (mouse - pmouse) * 10) stroke tomato thickness 6]
what it draws: the whole window, 400 by 300
What the example of pmouse draws

What it is

A vector of 2 numbers, read anywhere in a sketch, never set.

Related