no_cursor()

Hides the cursor from view.

Examples

1
2
3
4
5
6
# press the mouse to hide the cursor
def draw():
    if py5.is_mouse_pressed:
        py5.no_cursor()
    else:
        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