TableColorFilter

class TableColorFilter

Methods

Make

Create a table colorfilter, copying the table into the filter, and applying it to all 4 components.

MakeARGB

Create a table colorfilter, with a different table for each component [A, R, G, B].

__init__

Methods

static TableColorFilter.Make(table: List[int]) skia.ColorFilter

Create a table colorfilter, copying the table into the filter, and applying it to all 4 components.

a’ = table[a]; r’ = table[r]; g’ = table[g]; b’ = table[b]; Compoents are operated on in unpremultiplied space. If the incomming colors are premultiplied, they are temporarily unpremultiplied, then the table is applied, and then the result is remultiplied.

static TableColorFilter.MakeARGB(tableA: object, tableR: object, tableG: object, tableB: object) skia.ColorFilter

Create a table colorfilter, with a different table for each component [A, R, G, B].

If a given table is NULL, then it is treated as identity, with the component left unchanged. If a table is not null, then its contents are copied into the filter.

TableColorFilter.__init__(*args, **kwargs)