python-lottie  0.7.0+dev418bd09
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:
Collaboration diagram for lottie.utils.color.Color:

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

- Public Attributes inherited from lottie.nvector.NVector

Static Public Attributes

 Mode = ColorMode

Detailed Description

Definition at line 368 of file

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

Member Function Documentation

◆ __getattr__()

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

Definition at line 436 of file

◆ __repr__()

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

Reimplemented from lottie.nvector.NVector.

Definition at line 399 of file

◆ __setattr__()

def lottie.utils.color.Color.__setattr__ (   self,

Definition at line 443 of file

◆ clone()

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

Reimplemented from lottie.nvector.NVector.

Definition at line 390 of file

◆ component_names()

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

Definition at line 404 of file

◆ convert()

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

Definition at line 381 of file

◆ converted()

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

Definition at line 393 of file

◆ mode()

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

Definition at line 378 of file

◆ to_rgb()

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

Definition at line 396 of file

Member Data Documentation

◆ components


Definition at line 385 of file

◆ Mode

lottie.utils.color.Color.Mode = ColorMode

Definition at line 369 of file

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