Stage::setTint()
Set the tint.
Examples

import org.openpatch.scratch.*;
public class StageSetTint {
public StageSetTint() {
Stage myStage = new Stage(600, 240);
myStage.addBackdrop("forest", "assets/background_forest.png");
myStage.wait(2000);
myStage.setTint(200);
myStage.wait(2000);
myStage.exit();
}
public static void main(String[] args) {
new StageSetTint();
}
}
Syntax
Java
.setTint(hue), .setTint(r,g,b)
Scratch
set [tint v] effect to ()
Parameters
Name | Data Type | Description |
---|---|---|
hue | float | A hue value in the range of 0 ... 255 |
r | int | A red value in the range of 0 ... 255 |
g | int | A green value in the range of 0 ... 255 |
b | int | A blue value in the range of 0 ... 255 |
Return
void