Skip to main content

RGBA

Internal use only as a representation of a color.

Attributes

AttributeTypeDescription
rfloatThe red component of the color represented as a floating-point value.
gfloatThe green component of the color represented as a floating-point value.
bfloatThe blue component of the color represented as a floating-point value.
alpha`floatNone`
_tuple`tuple[float, float, float, floatNone]`

Constructor

Signature

def RGBA(
r: float,
g: float,
b: float,
alpha: float | None
) - > null

Parameters

NameTypeDescription
rfloatThe red component value.
gfloatThe green component value.
bfloatThe blue component value.
alpha`floatNone`

Signature

def RGBA(
r: float,
g: float,
b: float,
alpha: float | None
) - > null

Parameters

NameTypeDescription
rfloatThe red color component value.
gfloatThe green color component value.
bfloatThe blue color component value.
alpha`floatNone`