MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Color Class Reference

Public Member Functions

Color __add__ (self, Color b)
 
bool __eq__ (self, Color b)
 
Color __iadd__ (self, Color other)
 
Color __imatmul__ (self, float m)
 
None __init__ (self)
 
None __init__ (self, int r, int g, int b, int a=255)
 
None __init__ (self, float r, float g, float b, float a=1)
 
None __init__ (self, Vector4i vec)
 
None __init__ (self, Vector4f vec)
 
None __init__ (self, Color arg0)
 
Color __isub__ (self, Color other)
 
Color __itruediv__ (self, float m)
 
Color __mul__ (self, float a)
 
bool __ne__ (self, Color b)
 
Color __rmul__ (self, float b)
 
Color __sub__ (self, Color b)
 
Color __truediv__ (self, float a)
 
int getUInt32 (self)
 
Color scaledAlpha (self, float m)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
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 ()
 

Protected Member Functions

int _Subscript (self, int e)
 
int _Subscript (self, int e)
 
Vector4f _convert_to_Vector4_float (self)
 
Vector4i _convert_to_Vector4_int (self)
 

Detailed Description

Generated from:  MR::Color
Aliases:  Vector_Color_UndirectedEdgeId_reference, Vector_Color_FaceId_const_reference, std_vector_Color_const_reference, Vector_Color_UndirectedEdgeId_value_type, Vector_Color_Id_EdgeTag_value_type, std_vector_Color_reference, Vector_Color_VertId_value_type, Vector_Color_VertId_const_reference, Vector_Color_FaceId_reference, Vector_Color_Id_EdgeTag_const_reference, Vector_Color_UndirectedEdgeId_const_reference, std_vector_Color_value_type, Vector_Color_Id_EdgeTag_reference, Vector_Color_VertId_reference, Vector_Color_FaceId_value_type

Constructor & Destructor Documentation

◆ __init__() [1/7]

None meshlib.mrmeshpy.Color.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/7]

None meshlib.mrmeshpy.Color.__init__ ( self)

◆ __init__() [3/7]

None meshlib.mrmeshpy.Color.__init__ ( self,
int r,
int g,
int b,
int a = 255 )

◆ __init__() [4/7]

None meshlib.mrmeshpy.Color.__init__ ( self,
float r,
float g,
float b,
float a = 1 )

◆ __init__() [5/7]

None meshlib.mrmeshpy.Color.__init__ ( self,
Vector4i vec )

◆ __init__() [6/7]

None meshlib.mrmeshpy.Color.__init__ ( self,
Vector4f vec )

◆ __init__() [7/7]

None meshlib.mrmeshpy.Color.__init__ ( self,
Color arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __add__()

Color meshlib.mrmeshpy.Color.__add__ ( self,
Color b )

◆ __eq__()

bool meshlib.mrmeshpy.Color.__eq__ ( self,
Color b )

◆ __iadd__()

Color meshlib.mrmeshpy.Color.__iadd__ ( self,
Color other )

◆ __imatmul__()

Color meshlib.mrmeshpy.Color.__imatmul__ ( self,
float m )

◆ __isub__()

Color meshlib.mrmeshpy.Color.__isub__ ( self,
Color other )

◆ __itruediv__()

Color meshlib.mrmeshpy.Color.__itruediv__ ( self,
float m )

◆ __mul__()

Color meshlib.mrmeshpy.Color.__mul__ ( self,
float a )

◆ __ne__()

bool meshlib.mrmeshpy.Color.__ne__ ( self,
Color b )

◆ __rmul__()

Color meshlib.mrmeshpy.Color.__rmul__ ( self,
float b )

◆ __sub__()

Color meshlib.mrmeshpy.Color.__sub__ ( self,
Color b )

◆ __truediv__()

Color meshlib.mrmeshpy.Color.__truediv__ ( self,
float a )

◆ _convert_to_Vector4_float()

Vector4f meshlib.mrmeshpy.Color._convert_to_Vector4_float ( self)
protected

◆ _convert_to_Vector4_int()

Vector4i meshlib.mrmeshpy.Color._convert_to_Vector4_int ( self)
protected

◆ _Subscript() [1/2]

int meshlib.mrmeshpy.Color._Subscript ( self,
int e )
protected

◆ _Subscript() [2/2]

int meshlib.mrmeshpy.Color._Subscript ( self,
int e )
protected

◆ black()

Color meshlib.mrmeshpy.Color.black ( )
static

◆ blue()

Color meshlib.mrmeshpy.Color.blue ( )
static

◆ brown()

Color meshlib.mrmeshpy.Color.brown ( )
static

◆ getUInt32()

int meshlib.mrmeshpy.Color.getUInt32 ( self)

◆ gray()

Color meshlib.mrmeshpy.Color.gray ( )
static

◆ green()

Color meshlib.mrmeshpy.Color.green ( )
static

◆ purple()

Color meshlib.mrmeshpy.Color.purple ( )
static

◆ red()

Color meshlib.mrmeshpy.Color.red ( )
static

◆ scaledAlpha()

Color meshlib.mrmeshpy.Color.scaledAlpha ( self,
float m )

◆ transparent()

Color meshlib.mrmeshpy.Color.transparent ( )
static

◆ valToUint8() [1/2]

int meshlib.mrmeshpy.Color.valToUint8 ( float val)
static

◆ valToUint8() [2/2]

int meshlib.mrmeshpy.Color.valToUint8 ( int val)
static

◆ white()

Color meshlib.mrmeshpy.Color.white ( )
static

◆ yellow()

Color meshlib.mrmeshpy.Color.yellow ( )
static

The documentation for this class was generated from the following file: