Stage::setCursor()
Sets the cursor. It is recommended that the size is 16x16 or 32x32 pixels. The active spot of the cursor defaults to the top left corner (x = 0, y = 0). You can set the active spot by using the x and y argument. The values for the parameters x and y must be less than the dimensions of the image.
Examples
Syntax
Java
Scratch
set cursor (file path)
Parameters
Name | Data Type | Description |
---|---|---|
path | String | The path to the image |
x | int | The x coordinate of the active spot of the cursor. |
y | int | The y coordinate of the active spot of the cursor. |
Return
void