Public Member Functions | |
| Color | __add__ (self, ConstColor b) |
| bool | __eq__ (self, ConstColor b) |
| int | __getitem__ (self, int e) |
| __init__ (self, *args, **kwargs) | |
| Color | __mul__ (self, float a) |
| bool | __ne__ (self, ConstColor b) |
| Color | __rmul__ (self, float b) |
| Color | __sub__ (self, ConstColor b) |
| Color | __truediv__ (self, float a) |
| int | getUInt32 (self) |
| bool | isTranslucent (self) |
| Color | scaledAlpha (self, float m) |
| int | a (self) |
| int | b (self) |
| int | g (self) |
| int | r (self) |
Static Public Member Functions | |
| Color | black () |
| Color | blue () |
| Color | brown () |
| Color | gray () |
| Color | green () |
| Color | purple () |
| Color | red () |
| Color | transparent () |
| int | valToUint8 (int val) |
| int | valToUint8 (float val) |
| Color | white () |
| Color | yellow () |
Static Protected Attributes | |
| typing | _offsetof_a = 3 |
| typing | _offsetof_b = 2 |
| typing | _offsetof_g = 1 |
| typing | _offsetof_r = 0 |
Generated from: MR::Color Aliases: Vector_Color_FaceId_const_pointer, Vector_Color_FaceId_const_reference, Vector_Color_FaceId_pointer, Vector_Color_FaceId_reference, Vector_Color_FaceId_value_type, Vector_Color_Id_EdgeTag_const_pointer, Vector_Color_Id_EdgeTag_const_reference, Vector_Color_Id_EdgeTag_pointer, Vector_Color_Id_EdgeTag_reference, Vector_Color_Id_EdgeTag_value_type, Vector_Color_UndirectedEdgeId_const_pointer, Vector_Color_UndirectedEdgeId_const_reference, Vector_Color_UndirectedEdgeId_pointer, Vector_Color_UndirectedEdgeId_reference, Vector_Color_UndirectedEdgeId_value_type, Vector_Color_VertId_const_pointer, Vector_Color_VertId_const_reference, Vector_Color_VertId_pointer, Vector_Color_VertId_reference, Vector_Color_VertId_value_type, std_vector_Color_Allocator_Color_const_pointer, std_vector_Color_Allocator_Color_const_reference, std_vector_Color_Allocator_Color_pointer, std_vector_Color_Allocator_Color_reference, std_vector_Color_Allocator_Color_value_type
| mrmeshpy.ConstColor.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstColor) -> None 2. __init__(self: meshlib.mrmeshpy.ConstColor, : meshlib.mrmeshpy.ConstNoInit) -> None 3. __init__(self: meshlib.mrmeshpy.ConstColor, r: int, g: int, b: int, a: int) -> None 4. __init__(self: meshlib.mrmeshpy.ConstColor, r: int, g: int, b: int) -> None 5. __init__(self: meshlib.mrmeshpy.ConstColor, r: float, g: float, b: float, a: float) -> None 6. __init__(self: meshlib.mrmeshpy.ConstColor, r: float, g: float, b: float) -> None 7. __init__(self: meshlib.mrmeshpy.ConstColor, vec: meshlib.mrmeshpy.ConstVector4i) -> None 8. __init__(self: meshlib.mrmeshpy.ConstColor, vec: meshlib.mrmeshpy.ConstVector4f) -> None 9. __init__(self: meshlib.mrmeshpy.ConstColor, arg0: meshlib.mrmeshpy.Color) -> None Implicit copy constructor. 10. __init__(self: meshlib.mrmeshpy.ConstColor, : meshlib.mrmeshpy.Color) -> None
| Color mrmeshpy.ConstColor.__add__ | ( | self, | |
| ConstColor | b ) |
| bool mrmeshpy.ConstColor.__eq__ | ( | self, | |
| ConstColor | b ) |
| int mrmeshpy.ConstColor.__getitem__ | ( | self, | |
| int | e ) |
| Color mrmeshpy.ConstColor.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstColor.__ne__ | ( | self, | |
| ConstColor | b ) |
| Color mrmeshpy.ConstColor.__rmul__ | ( | self, | |
| float | b ) |
| Color mrmeshpy.ConstColor.__sub__ | ( | self, | |
| ConstColor | b ) |
| Color mrmeshpy.ConstColor.__truediv__ | ( | self, | |
| float | a ) |
| int mrmeshpy.ConstColor.a | ( | self | ) |
| int mrmeshpy.ConstColor.b | ( | self | ) |
|
static |
|
static |
|
static |
| int mrmeshpy.ConstColor.g | ( | self | ) |
| int mrmeshpy.ConstColor.getUInt32 | ( | self | ) |
|
static |
|
static |
| bool mrmeshpy.ConstColor.isTranslucent | ( | self | ) |
returns true if the color is neither fully opaque nor fully transparent, so it has to be blended with the colors behind
|
static |
| int mrmeshpy.ConstColor.r | ( | self | ) |
|
static |
| Color mrmeshpy.ConstColor.scaledAlpha | ( | self, | |
| float | m ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |