gizgame/particles
A game's particles, drawn in 3D and in 2D.
import * as Particles from "gizgame/particles";Functions
particles3D
function particles3D(game: Game, stage: Stage): void throws stringGAME's particles on STAGE: each kind is a model of the same name (Stage.add): a streak stretched along its motion and thinned as it cools, a soft puff swelling as it ages and gone small at its end, else placed at its size, turning.
Effects: fail, read, write, console, io, alloc.
puff
function puff(color: Vec<f64>): Gaussians throws stringA unit puff of smoke or dust in COLOR: 20 gaussian splats in a ball, fainter toward its rim.
Effects: fail, alloc.
particles2D
function particles2D(game: Game, canvas: mut Canvas2D): void throws stringGAME's particles on CANVAS: a glow in each one's color and a bright core, fading out.
Effects: fail, read, write, console, io, alloc.