接口 RGBA实验性

Represents a fully customizable color within Minecraft.

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

层级 (查看完整内容)

属性

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.