Skip to content

anim-format (runtime format) / Matrix2D

Type Alias: Matrix2D ​

ts
type Matrix2D = 
  | readonly [number, number, number, number, number, number]
  | readonly number[];

Flash-style 3D rotation (owner 2026-10-30, plan docs/plans/2026-10-28-3d-rotation-plan.html): THE one evaluation the editor, the exporter and the player share. Not a 3D scene — every object is a flat card turned about its own X / Y axes, pushed along Z and drawn through a perspective projection; stacking order stays the layer / depth order (nothing passes through anything).

Axes: x right, y down, z away from the viewer (Flash). Positive rotation X tips the top away, positive rotation Y turns the right side away. Order (Flash): scale / skew → rotation X → rotation Y → the 2D rotation → position + z → projection. So X / Y turn about the object's OWN axes (a card already turned 30° in 2D flips along its own slant).

HereSplash — 2D animation for the web