MeshLib Python Docs
Loading...
Searching...
No Matches
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)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__() [1/7]

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

◆ __init__() [2/7]

None mrmeshpy.Color.__init__ ( self)

◆ __init__() [3/7]

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

◆ __init__() [4/7]

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

◆ __init__() [5/7]

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

◆ __init__() [6/7]

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

◆ __init__() [7/7]

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

Member Function Documentation

◆ __add__()

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

◆ __eq__()

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

◆ __iadd__()

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

◆ __imatmul__()

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

◆ __isub__()

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

◆ __itruediv__()

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

◆ __mul__()

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

◆ __ne__()

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

◆ __rmul__()

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

◆ __sub__()

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

◆ __truediv__()

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

◆ _convert_to_Vector4_float()

Vector4f mrmeshpy.Color._convert_to_Vector4_float ( self)
protected

◆ _convert_to_Vector4_int()

Vector4i mrmeshpy.Color._convert_to_Vector4_int ( self)
protected

◆ _pybind11_conduit_v1_()

mrmeshpy.Color._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

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

◆ black()

Color mrmeshpy.Color.black ( )
static

◆ blue()

Color mrmeshpy.Color.blue ( )
static

◆ brown()

Color mrmeshpy.Color.brown ( )
static

◆ getUInt32()

int mrmeshpy.Color.getUInt32 ( self)

◆ gray()

Color mrmeshpy.Color.gray ( )
static

◆ green()

Color mrmeshpy.Color.green ( )
static

◆ purple()

Color mrmeshpy.Color.purple ( )
static

◆ red()

Color mrmeshpy.Color.red ( )
static

◆ scaledAlpha()

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

◆ transparent()

Color mrmeshpy.Color.transparent ( )
static

◆ valToUint8() [1/2]

int mrmeshpy.Color.valToUint8 ( float val)
static

◆ valToUint8() [2/2]

int mrmeshpy.Color.valToUint8 ( int val)
static

◆ white()

Color mrmeshpy.Color.white ( )
static

◆ yellow()

Color mrmeshpy.Color.yellow ( )
static

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