rocinantealpha

reference / input

wheel

How far the mouse wheel turned since the last frame: wheel.y up, wheel.x to the right.

size = 40draw [  background 240  size = clamp (size + wheel.y * 5) 5 140  circle at 200 150 radius size fill gold]
what it draws: the whole window, 400 by 300
What the example of wheel draws

What it is

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

Related