Skip to content

anim-format (runtime format) / skirtMesh

Function: skirtMesh() ​

ts
function skirtMesh(
   rest, 
   drawn, 
   tris, 
   box
): object;

The mesh with a SKIRT (owner 2026-10-31): art outside the mesh is still drawn — every convex-hull edge is pushed straight out past box (the flat content's bounds, rest space) as a quad, and the corners between them are fans, so whatever lies outside follows the nearest outline points (moved with them, turned like their edge). The first rest.length / 2 points are the mesh's own; core says how many.

Parameters ​

ParameterType
restreadonly number[]
drawnreadonly number[]
trisreadonly number[]
box{ maxX: number; maxY: number; minX: number; minY: number; }
box.maxXnumber
box.maxYnumber
box.minXnumber
box.minYnumber

Returns ​

object

NameType
corenumber
drawnnumber[]
restnumber[]
trisnumber[]

HereSplash — 2D animation for the web