Window::useSplashLogo()
Puts your own picture on the loading screen in place of the Scratch for Java logo. The picture fades in while your project starts and fades out again once it is ready.
It is shrunk to fit if it is large, and never enlarged, so a picture of roughly 300 by 300 looks right in a window of the usual size.
Call it before the first stage is created, because the loading screen is the first thing the window draws:
public static void main(String[] args) {
Window.useSplashLogo("assets/logo.png");
new MyStage();
}
Syntax
Java
.useSplashLogo(path)
Parameters
| Name | Data Type | Description |
|---|---|---|
| path | String | the picture to show, or `null` for the Scratch for Java logo |
Return
void