# ColorRGBA¶

class Draft.ColorRGBA((object)arg1) → None

This class represents a color, in RGBA format.

__init__( (object)arg1) -> None

__init__( (object)arg1, (float)R, (float)G, (float)B, (float)A) -> None

A

Decimal value representing the alpha component. Normally in the range from 0.0 to 1.0.

B

Decimal value representing the blue component. Normally in the range from 0.0 to 1.0.

G

Decimal value representing the green component. Normally in the range from 0.0 to 1.0.

R

Decimal value representing the red component. Normally in the range from 0.0 to 1.0.

Sample Code:

newColor = Draft.ColorRGBA( 0.75, 0.54, 0.975, 1.0 )


or:

newColor = Draft.ColorRGBA()
newColor.R = 0.75
newColor.G = 0.54
newColor.B = 0.975
newColor.A = 1.0