Represents a fully customizable color within Minecraft.

interface RGBA {
    alpha: number;
    blue: number;
    green: number;
    red: number;
}

Hierarchy (View Summary)

Properties

Properties

alpha: number

Determines a color's alpha (opacity) component. Valid values are between 0 (transparent) and 1.0 (opaque).

blue: number

Determines a color's blue component. Valid values are between 0 and 1.0.

green: number

Determines a color's green component. Valid values are between 0 and 1.0.

red: number

Determines a color's red component. Valid values are between 0 and 1.0.