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:
Collaboration diagram for lottie.parsers.raster.KMeansPalette:

Public Member Functions

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

Public Attributes


Detailed Description

Definition at line 20 of file

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

Member Function Documentation

◆ get_colors()

def lottie.parsers.raster.KMeansPalette.get_colors (   self,

Reimplemented from lottie.parsers.raster.PaletteAlgorithm.

Definition at line 25 of file

Member Data Documentation

◆ iterations


Definition at line 22 of file

◆ match


Definition at line 23 of file

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