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

Public Member Functions

Color __add__ (self, Color b)
 
bool __eq__ (self, Color b)
 
int __getitem__ (self, int e)
 
int __getitem__ (self, int e)
 
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)
 
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)
 
None __setitem__ (self, int arg0, int arg1)
 
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)
 
None __init__ (*args, **kwargs)
 
Color black ()
 
Color blue ()
 
Color brown ()
 
Color gray ()
 
Color green ()
 
Color operator (*args, **kwargs)
 
Color operator (*args, **kwargs)
 
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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__() [1/7]

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

◆ __init__() [2/7]

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

◆ __init__() [3/7]

None mrmeshpy.Color.__init__ ( self)

◆ __init__() [4/7]

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

◆ __init__() [5/7]

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

◆ __init__() [6/7]

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

◆ __init__() [7/7]

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

Member Function Documentation

◆ __add__()

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

◆ __eq__()

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

◆ __getitem__() [1/2]

int mrmeshpy.Color.__getitem__ ( self,
int e )

◆ __getitem__() [2/2]

int mrmeshpy.Color.__getitem__ ( self,
int e )

◆ __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 )

◆ __setitem__()

None mrmeshpy.Color.__setitem__ ( self,
int arg0,
int arg1 )

◆ __sub__()

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

◆ __truediv__()

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

◆ 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

◆ operator() [1/2]

Color mrmeshpy.Color.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Color mrmeshpy.Color.operator ( * args,
** kwargs )
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

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.Color._offsetof_a = 3
staticprotected

◆ _offsetof_b

typing mrmeshpy.Color._offsetof_b = 2
staticprotected

◆ _offsetof_g

typing mrmeshpy.Color._offsetof_g = 1
staticprotected

◆ _offsetof_r

typing mrmeshpy.Color._offsetof_r = 0
staticprotected

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