Skip to main content
Module

x/canvas/mod.ts>ColorFilterFactory

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Latest
interface ColorFilterFactory
import { type ColorFilterFactory } from "https://deno.land/x/canvas@v1.4.1/mod.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.