Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface SkRuntimeEffect
import { type SkRuntimeEffect } from "https://deno.land/x/canvaseno@v1.0.2/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.