Skip to main content
Module

x/targadactyl/deps.ts>ColorFilterFactory

tga.js implemented in Deno
Latest
interface ColorFilterFactory
import { type ColorFilterFactory } from "https://deno.land/x/targadactyl@1.2.0/deps.ts";

See SkColorFilter.h for more.

Methods

MakeBlend(color: InputColor, mode: BlendMode): ColorFilter

Makes a color filter with the given color and blend mode.

MakeCompose(outer: ColorFilter, inner: ColorFilter): ColorFilter

Makes a color filter composing two color filters.

MakeLerp(
t: number,
): ColorFilter

Makes a color filter that is linearly interpolated between two other color filters.

MakeLinearToSRGBGamma(): ColorFilter

Makes a color filter that converts between linear colors and sRGB colors.

MakeMatrix(cMatrix: InputColorMatrix): ColorFilter

Creates a color filter using the provided color matrix.

MakeSRGBToLinearGamma(): ColorFilter

Makes a color filter that converts between sRGB colors and linear colors.