python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.color.Color Class Reference
Inheritance diagram for lottie.utils.color.Color:
[legend]
Collaboration diagram for lottie.utils.color.Color:
[legend]

Public Member Functions

def __init__ (self, c1=0, c2=0, c3=0, a=1, *mode=ColorMode.RGB)
 
def mode (self)
 
def convert (self, v)
 
def clone (self)
 
def converted (self, mode)
 
def to_rgb (self)
 
def __repr__ (self)
 
def component_names (self)
 
def __getattr__ (self, name)
 
def __setattr__ (self, name, value)
 
- Public Member Functions inherited from lottie.nvector.NVector
def __init__ (self, *components)
 
def __str__ (self)
 
def __len__ (self)
 
def to_list (self)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def __mul__ (self, scalar)
 
def __truediv__ (self, scalar)
 
def __iadd__ (self, other)
 
def __isub__ (self, other)
 
def __imul__ (self, scalar)
 
def __itruediv__ (self, scalar)
 
def __neg__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __eq__ (self, other)
 
def __abs__ (self)
 
float length (self)
 
def dot (self, other)
 
def lerp (self, other, t)
 
def x (self)
 
def x (self, v)
 
def y (self)
 
def y (self, v)
 
def z (self)
 
def z (self, v)
 
def element_scaled (self, other)
 
def cross (self, other)
 
def polar_angle (self)
 

Public Attributes

 components
 
- Public Attributes inherited from lottie.nvector.NVector
 components
 

Static Public Attributes

 Mode = ColorMode
 

Detailed Description

Definition at line 368 of file color.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.color.Color.__init__ (   self,
  c1 = 0,
  c2 = 0,
  c3 = 0,
  a = 1,
mode = ColorMode.RGB 
)

Definition at line 371 of file color.py.

Member Function Documentation

◆ __getattr__()

def lottie.utils.color.Color.__getattr__ (   self,
  name 
)

Definition at line 434 of file color.py.

◆ __repr__()

def lottie.utils.color.Color.__repr__ (   self)

Reimplemented from lottie.nvector.NVector.

Definition at line 399 of file color.py.

◆ __setattr__()

def lottie.utils.color.Color.__setattr__ (   self,
  name,
  value 
)

Definition at line 441 of file color.py.

◆ clone()

def lottie.utils.color.Color.clone (   self)

Reimplemented from lottie.nvector.NVector.

Definition at line 390 of file color.py.

◆ component_names()

def lottie.utils.color.Color.component_names (   self)

Definition at line 404 of file color.py.

◆ convert()

def lottie.utils.color.Color.convert (   self,
  v 
)

Definition at line 381 of file color.py.

◆ converted()

def lottie.utils.color.Color.converted (   self,
  mode 
)

Definition at line 393 of file color.py.

◆ mode()

def lottie.utils.color.Color.mode (   self)

Definition at line 378 of file color.py.

◆ to_rgb()

def lottie.utils.color.Color.to_rgb (   self)

Definition at line 396 of file color.py.

Member Data Documentation

◆ components

lottie.utils.color.Color.components

Definition at line 385 of file color.py.

◆ Mode

lottie.utils.color.Color.Mode = ColorMode
static

Definition at line 369 of file color.py.


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