rocinantealpha

reference / input

pressed

Whether a mouse button is held down in this window.

draw [  background 240  if pressed [ fill tomato ] else [ fill 200 ]  circle at 200 150 radius 80]
what it draws: the whole window, 400 by 300
What the example of pressed draws

What it is

True or false, read anywhere in a sketch, never set.

Related