Color()
The Color class represents a color in the Scratch environment. It supports various functionalities such as setting color values in the RGB and HSB spectrum, changing the color based on a hue value, and converting between RGB and HSB color codes.
Examples
Syntax
Java
new Color()
new Color(hexCode)
new Color(h)
new Color(r, g, b)
new Color(c)