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 Java method: noCursor

Syntax

no_cursor() -> None

Updated on September 11, 2021 16:51:34pm UTC