no_cursor()#

Hides the cursor from view.

Examples#

1# press the mouse to hide the cursor
2def draw():
3    if py5.is_mouse_pressed:
4        py5.no_cursor()
5    else:
6        py5.cursor(py5.HAND)

Description#

Hides the cursor from view. Will not work when running the program in full screen (Present) mode.

Underlying Processing method: noCursor

Syntax#

no_cursor() -> None

Updated on November 12, 2021 11:30:58am UTC