Module

x/canvas/mod.ts>SkRuntimeEffect

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

See SkRuntimeEffect.h for more details.

Methods

makeShader(
uniforms: Float32Array | number[],
isOpaque?: boolean,
localMatrix?: InputMatrix,
): SkShader

Returns a shader executed using the given uniform data.

makeShaderWithChildren(
uniforms: Float32Array | number[],
isOpaque?: boolean,
children?: SkShader[],
localMatrix?: InputMatrix,
): SkShader

Returns a shader executed using the given uniform data and the children as inputs.