v0.5.0
Point
{ x: number, y: number }
AABB
{ min: { x: number, y: number }, max: { x: number, y: number } }
  • min Point — Minimum corner (top-left).
  • max Point — Maximum corner (bottom-right).
Colour
{ r: number, g: number, b: number, a: number }
  • r number — Red channel (0-255).
  • g number — Green channel (0-255).
  • b number — Blue channel (0-255).
  • a number — Alpha channel (0-255).
Angle
A numeric value in radians. Used for entity direction and rotation.
Entity ID
A number returned by Simulation.spawn(). Used as the first argument to all Entity.* functions.
Renderable Index
A number returned by Entity.createRenderable(). Identifies a specific renderable within an entity.
Renderable Handle
An opaque number returned by Entity.getRenderable(). Shared Helix/Renderable mutations, including particle controls, use this handle rather than a renderable index.
Animation ID
A number returned by Entity.addAnimation() or Camera.addAnimation(). Identifies a specific animation.
BlendMode
'premultiplied-alpha' | 'opaque' | 'additive' | 'alpha'. Default is 'premultiplied-alpha'.
TextureSemantic
'color-srgb-premul' | 'data-linear-no-premul'. Default is 'color-srgb-premul'; use data-linear for normals/height/data textures.