python-lottie  0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.transform.TransformMatrix Class Reference

Public Member Functions

def __init__ (self)
 
def clone (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def a (self)
 
def a (self, v)
 
def b (self)
 
def b (self, v)
 
def c (self)
 
def c (self, v)
 
def d (self)
 
def d (self, v)
 
def tx (self)
 
def tx (self, v)
 
def ty (self)
 
def ty (self, v)
 
def __str__ (self)
 
def scale (self, x, y=None)
 
def translate (self, x, y=None)
 
def skew (self, x_rad, y_rad)
 
def skew_from_axis (self, skew, axis)
 
def row (self, i)
 
def column (self, i)
 
def to_identity (self)
 
def apply (self, vector)
 
def rotation (cls, radians)
 
def __mul__ (self, other)
 
def __imul__ (self, other)
 
def rotate (self, radians)
 
def extract_transform (self)
 
def to_css_2d (self)
 

Static Public Attributes

 scalar = float
 

Detailed Description

Definition at line 11 of file transform.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.transform.TransformMatrix.__init__ (   self)
 Creates an Identity matrix 

Definition at line 14 of file transform.py.

Member Function Documentation

◆ __getitem__()

def lottie.utils.transform.TransformMatrix.__getitem__ (   self,
  key 
)

Definition at line 25 of file transform.py.

◆ __imul__()

def lottie.utils.transform.TransformMatrix.__imul__ (   self,
  other 
)

Definition at line 156 of file transform.py.

◆ __mul__()

def lottie.utils.transform.TransformMatrix.__mul__ (   self,
  other 
)

Definition at line 149 of file transform.py.

◆ __setitem__()

def lottie.utils.transform.TransformMatrix.__setitem__ (   self,
  key,
  value 
)

Definition at line 29 of file transform.py.

◆ __str__()

def lottie.utils.transform.TransformMatrix.__str__ (   self)

Definition at line 81 of file transform.py.

◆ a() [1/2]

def lottie.utils.transform.TransformMatrix.a (   self)

Definition at line 34 of file transform.py.

◆ a() [2/2]

def lottie.utils.transform.TransformMatrix.a (   self,
  v 
)

Definition at line 38 of file transform.py.

◆ apply()

def lottie.utils.transform.TransformMatrix.apply (   self,
  vector 
)

Definition at line 132 of file transform.py.

◆ b() [1/2]

def lottie.utils.transform.TransformMatrix.b (   self)

Definition at line 42 of file transform.py.

◆ b() [2/2]

def lottie.utils.transform.TransformMatrix.b (   self,
  v 
)

Definition at line 46 of file transform.py.

◆ c() [1/2]

def lottie.utils.transform.TransformMatrix.c (   self)

Definition at line 50 of file transform.py.

◆ c() [2/2]

def lottie.utils.transform.TransformMatrix.c (   self,
  v 
)

Definition at line 54 of file transform.py.

◆ clone()

def lottie.utils.transform.TransformMatrix.clone (   self)

Definition at line 18 of file transform.py.

◆ column()

def lottie.utils.transform.TransformMatrix.column (   self,
  i 
)

Definition at line 121 of file transform.py.

◆ d() [1/2]

def lottie.utils.transform.TransformMatrix.d (   self)

Definition at line 58 of file transform.py.

◆ d() [2/2]

def lottie.utils.transform.TransformMatrix.d (   self,
  v 
)

Definition at line 62 of file transform.py.

◆ extract_transform()

def lottie.utils.transform.TransformMatrix.extract_transform (   self)

Definition at line 165 of file transform.py.

◆ rotate()

def lottie.utils.transform.TransformMatrix.rotate (   self,
  radians 
)

Definition at line 161 of file transform.py.

◆ rotation()

def lottie.utils.transform.TransformMatrix.rotation (   cls,
  radians 
)

Definition at line 140 of file transform.py.

◆ row()

def lottie.utils.transform.TransformMatrix.row (   self,
  i 
)

Definition at line 118 of file transform.py.

◆ scale()

def lottie.utils.transform.TransformMatrix.scale (   self,
  x,
  y = None 
)

Definition at line 84 of file transform.py.

◆ skew()

def lottie.utils.transform.TransformMatrix.skew (   self,
  x_rad,
  y_rad 
)

Definition at line 103 of file transform.py.

◆ skew_from_axis()

def lottie.utils.transform.TransformMatrix.skew_from_axis (   self,
  skew,
  axis 
)

Definition at line 110 of file transform.py.

◆ to_css_2d()

def lottie.utils.transform.TransformMatrix.to_css_2d (   self)

Definition at line 202 of file transform.py.

◆ to_identity()

def lottie.utils.transform.TransformMatrix.to_identity (   self)

Definition at line 124 of file transform.py.

◆ translate()

def lottie.utils.transform.TransformMatrix.translate (   self,
  x,
  y = None 
)

Definition at line 94 of file transform.py.

◆ tx() [1/2]

def lottie.utils.transform.TransformMatrix.tx (   self)

Definition at line 66 of file transform.py.

◆ tx() [2/2]

def lottie.utils.transform.TransformMatrix.tx (   self,
  v 
)

Definition at line 70 of file transform.py.

◆ ty() [1/2]

def lottie.utils.transform.TransformMatrix.ty (   self)

Definition at line 74 of file transform.py.

◆ ty() [2/2]

def lottie.utils.transform.TransformMatrix.ty (   self,
  v 
)

Definition at line 78 of file transform.py.

Member Data Documentation

◆ scalar

lottie.utils.transform.TransformMatrix.scalar = float
static

Definition at line 12 of file transform.py.


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