animator.skia.ColorMatrix

class animator.skia.ColorMatrix

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: animator.skia.ColorMatrix) -> None

  2. __init__(self: animator.skia.ColorMatrix, m00: float, m01: float, m02: float, m03: float, m04: float, m10: float, m11: float, m12: float, m13: float, m14: float, m20: float, m21: float, m22: float, m23: float, m24: float, m30: float, m31: float, m32: float, m33: float, m34: float) -> None

  3. __init__(self: animator.skia.ColorMatrix, m: List[float]) -> None

Construct a color matrix from a list of 20 floats.

Methods

RGBtoYUV(cs)

YUVtoRGB(cs)

__init__(*args, **kwargs)

Overloaded function.

getRowMajor(self)

Returns a list of 20 floats representing the row-major matrix.

postConcat(self, mat)

postTranslate(self, dr, dg, db, da)

preConcat(self, mat)

setConcat(self, a, b)

setIdentity(self)

setRowMajor(self, src)

setSaturation(self, sat)

setScale(self, rScale, gScale, bScale[, aScale])

static RGBtoYUV(cs: animator.skia.YUVColorSpace) animator.skia.ColorMatrix
static YUVtoRGB(cs: animator.skia.YUVColorSpace) animator.skia.ColorMatrix
getRowMajor(self: animator.skia.ColorMatrix) List[float]

Returns a list of 20 floats representing the row-major matrix.

postConcat(self: animator.skia.ColorMatrix, mat: animator.skia.ColorMatrix) None
postTranslate(self: animator.skia.ColorMatrix, dr: float, dg: float, db: float, da: float) None
preConcat(self: animator.skia.ColorMatrix, mat: animator.skia.ColorMatrix) None
setConcat(self: animator.skia.ColorMatrix, a: animator.skia.ColorMatrix, b: animator.skia.ColorMatrix) None
setIdentity(self: animator.skia.ColorMatrix) None
setRowMajor(self: animator.skia.ColorMatrix, src: List[float]) None
setSaturation(self: animator.skia.ColorMatrix, sat: float) None
setScale(self: animator.skia.ColorMatrix, rScale: float, gScale: float, bScale: float, aScale: float = 1) None