An RGBA color value.
More...
|
def | __init__ |
|
def | r |
|
def | setR |
|
def | g |
|
def | setG |
|
def | b |
|
def | setB |
|
def | a |
|
def | setA |
|
def | setValues |
|
def | __eq__ |
|
def | __hash__ |
|
def | __repr__ |
|
def | toHexString |
| Returns a 7-character string in "#RRGGBB" format representing the color. More...
|
|
An RGBA color value.
This class represents an RGBA color value, in the range of 0.0 to 1.0.
def UM.Math.Color.Color.fromARGB |
( |
|
value | ) |
|
|
static |
Returns a new Color constructed from a 32-bit integer in ARGB order.
- Parameters
-
value | A 32-bit integer representing a color in ARGB order. |
- Returns
- A Color constructed from the components of value.
def UM.Math.Color.Color.fromHexString |
( |
|
value | ) |
|
|
static |
Returns a new Color constructed from a 7- or 9-character string "#RRGGBB" or "#AARRGGBB" format.
- Parameters
-
value | A 7- or 9-character string representing a color in "#RRGGBB" or "#AARRGGBB" format. |
- Returns
- A Color constructed from the components of value.
def UM.Math.Color.Color.toHexString |
( |
|
self, |
|
|
|
include_alpha = False |
|
) |
| |
Returns a 7-character string in "#RRGGBB" format representing the color.
- Parameters
-
include_alpha | Whether to return a 7-character "#RRGGBB" or a 9 character "#AARRGGBB" format. |
- Returns
- A 7- or 9-character string representing a color in "#AARRGGBB" format.
The documentation for this class was generated from the following file: