Scratch for Java

Stage::setCursor()

Sets the cursor image for the stage.

Examples

View on GitHub

Syntax

Java

.setCursor(path)
.setCursor(path, x, y)

Parameters

Name Data Type Description
path String a path to an image file, or the name of a built-in sprite
x int the x-coordinate of the cursor's active spot
y int the y-coordinate of the cursor's active spot

Return

void

setCursor()

Create Shareable URL

Select Sections