{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "fit", "description": "The same square SVG in three 300×170 boxes: cover, contain and fill",
    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",
    "layers": [
      { "id": "frame", "type": "rect", "x": "=300 + i * 340", "y": "45%", "width": 300, "height": 170, "repeat": 3,
        "fill": "#e9e4d8", "stroke": "#16141288", "strokeWidth": 1.5, "dash": [6, 5] },
      { "id": "cover", "type": "image", "src": "assets/logo.svg", "x": 300, "y": "45%", "width": 300, "height": 170,
        "fit": "cover", "enter": "fade" },
      { "id": "contain", "type": "image", "src": "assets/logo.svg", "x": 640, "y": "45%", "width": 300, "height": 170,
        "fit": "contain", "start": "0.2s", "enter": "fade" },
      { "id": "fill", "type": "image", "src": "assets/logo.svg", "x": 980, "y": "45%", "width": 300, "height": 170,
        "fit": "fill", "start": "0.4s", "enter": "fade" },
      { "id": "label", "type": "text", "x": "=300 + i * 340", "y": "68%", "repeat": 3, "font": "JetBrains Mono", "fontSize": 20,
        "letterSpacing": 1.6, "fill": "#8a857a", "text": "fit: ${pick(i, ['cover', 'contain', 'fill'])}" }
    ]
  }]
}
