{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "colors", "description": "Expressions that return colors: hsl() by index and time, pick() from a palette, lerp() between two colors",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "label", "type": "text", "text": "${pick(i, ['hsl()', 'pick()', 'lerp()'])}", "font": "JetBrains Mono", "fontSize": 24,
        "fill": "#4a4640", "anchor": "right", "x": 250, "y": 360, "repeat": { "count": 3, "layout": "column", "spacing": 170 } },
      { "id": "hsl", "type": "rect", "width": 72, "height": 120, "cornerRadius": 4, "x": 750, "y": 190,
        "repeat": { "count": 10, "layout": "row", "spacing": 90 }, "fill": "=hsl(i * 36 + t * 90, 50, 70)" },
      { "id": "pick", "type": "rect", "width": 72, "height": 120, "cornerRadius": 4, "x": 750, "y": 360,
        "repeat": { "count": 10, "layout": "row", "spacing": 90 },
        "fill": "=pick(i + floor(t * 4), ['#c92a26', '#161412', '#1f5fb0', '#d8d1c1'])" },
      { "id": "lerp", "type": "rect", "width": 72, "height": 120, "cornerRadius": 4, "x": 750, "y": 530,
        "repeat": { "count": 10, "layout": "row", "spacing": 90 },
        "fill": "=lerp('#d8d1c1', '#161412', 0.5 + 0.5 * sin(t * pi - i * 0.5))" }
    ]
  }]
}
