How to modify the color of a SUIImage by script using Java.md
In your Java class, do the following:
public class YourClass extends Component {
// create a new color
public Color color = new Color(255, 255, 0, 0);
// creates a new SUIImage, @AutoWired selects the component from this object
@AutoWired
private SUIImage image;
@Override
public void start() {
}
@Override
public void repeat() {
// change color of SUIImage
image.setColor(color);
}
}