Scratch for Java

Stage::changeTint()

Change the tint by a given amount.

Examples

import org.openpatch.scratch.*;
 
public class StageChangeTint {
  public StageChangeTint() {
    Stage myStage = new Stage(600, 240);
    myStage.addBackdrop("forest", "assets/background_forest.png");
    myStage.wait(2000);
    myStage.changeTint(200);
    myStage.wait(2000);
    myStage.exit();
  }
 
  public static void main(String[] args) {
    new StageChangeTint();
  }
}
 

View on GitHub

Syntax

Java

.changeTint(amount)

Scratch

change [tint v] effect by (25)

Parameters

Name Data Type Description
amount float Changes the tint by the amount.

Return

void

changeTint()