import { type Particles } from "https://deno.land/x/canvas@v1.0.0/mod.ts";
See SkParticleEffect.h for more details.
Methods
draw(canvas: SkCanvas): void
Draws the current state of the particles on the given canvas.
Returns a Float32Array bound to the WASM memory of these uniforms. Changing these floats will change the corresponding uniforms instantly.
getEffectUniform(index: number): ParticlesUniform
Returns the nth uniform from the effect.
getParticleUniform(index: number): ParticlesUniform
Returns the nth uniform on the particles.
Returns a Float32Array bound to the WASM memory of these uniforms. Changing these floats will change the corresponding uniforms instantly.
setPosition(point: SkPoint): void
Sets the base position of the effect.