Module

x/canvas/mod.ts>SkColorFilterFactory

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface SkColorFilterFactory
import { type SkColorFilterFactory } from "https://deno.land/x/canvas@v1.0.0/mod.ts";

See SkColorFilter.h for more.

Methods

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

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

MakeCompose(outer: SkColorFilter, inner: SkColorFilter): SkColorFilter

Makes a color filter composing two color filters.

MakeLerp(
t: number,
): SkColorFilter

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

MakeLinearToSRGBGamma(): SkColorFilter

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

MakeMatrix(cMatrix: InputColorMatrix): SkColorFilter

Creates a color filter using the provided color matrix.

MakeSRGBToLinearGamma(): SkColorFilter

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