python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.raster.KMeansPalette Class Reference
Inheritance diagram for lottie.parsers.raster.KMeansPalette:
[legend]
Collaboration diagram for lottie.parsers.raster.KMeansPalette:
[legend]

Public Member Functions

def __init__ (self, iterations=100, match=glaxnimate.utils.quantize.MatchType.MostFrequent)
 
def get_colors (self, image, n_colors)
 

Public Attributes

 iterations
 
 match
 

Detailed Description

Definition at line 20 of file raster.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.parsers.raster.KMeansPalette.__init__ (   self,
  iterations = 100,
  match = glaxnimate.utils.quantize.MatchType.MostFrequent 
)

Definition at line 21 of file raster.py.

Member Function Documentation

◆ get_colors()

def lottie.parsers.raster.KMeansPalette.get_colors (   self,
  image,
  n_colors 
)

Reimplemented from lottie.parsers.raster.PaletteAlgorithm.

Definition at line 25 of file raster.py.

Member Data Documentation

◆ iterations

lottie.parsers.raster.KMeansPalette.iterations

Definition at line 22 of file raster.py.

◆ match

lottie.parsers.raster.KMeansPalette.match

Definition at line 23 of file raster.py.


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