{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "filters", "description": "The same clip six times: original, blur, brightness, saturation, chromaticAberration and grain",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "orig", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 240, "y": 210, "width": 340, "height": 191, "cornerRadius": 2 },
      { "id": "blur", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 640, "y": 210, "width": 340, "height": 191, "cornerRadius": 2,
        "blur": "=6 + 6 * sin(t * pi)" },
      { "id": "bright", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 1040, "y": 210, "width": 340, "height": 191, "cornerRadius": 2,
        "brightness": 0.45 },
      { "id": "sat", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 240, "y": 480, "width": 340, "height": 191, "cornerRadius": 2,
        "saturation": "=0.5 + 0.5 * cos(t * pi)" },
      { "id": "ca", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 640, "y": 480, "width": 340, "height": 191, "cornerRadius": 2,
        "chromaticAberration": 10 },
      { "id": "grain", "type": "video", "src": "assets/clip.mp4", "muted": true, "x": 1040, "y": 480, "width": 340, "height": 191, "cornerRadius": 2,
        "grain": 0.35 },
      { "id": "label", "type": "text", "font": "JetBrains Mono", "fontSize": 17, "letterSpacing": 1.4, "fill": "#8a857a", "x": 640, "y": 470,
        "text": "${pad(i + 1, 2)}  ${pick(i, ['original', 'blur', 'brightness 0.45', 'saturation', 'chromaticAberration 10', 'grain 0.35'])}",
        "repeat": { "count": 6, "layout": "grid", "cols": 3, "spacing": [400, 270] } }
    ]
  }]
}
