{
  "fonts": [
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono-Italic.ttf" }
  ],
  "compositions": [{
    "id": "code", "description": "Syntax-colored code from rich text spans, typed out with reveal and a blinking cursor",
    "width": 1280, "height": 720, "fps": 30, "duration": "5s", "background": "#f4f1ea",
    "layers": [
      { "id": "panel", "type": "rect", "width": 920, "height": 340, "cornerRadius": 4, "fill": "#fbf9f4",
        "stroke": "#161412", "strokeWidth": 2 },
      { "id": "code", "type": "text", "anchor": "top-left", "x": 251, "y": 252, "font": "JetBrains Mono", "fontSize": 36,
        "align": "left", "whiteSpace": "pre", "lineHeight": 1.5, "fill": "#161412",
        "reveal": { "from": 0, "to": 1, "start": "0.3s", "duration": "3s", "ease": "linear" },
        "text": [
          { "text": "fn", "fill": "#4a4640", "fontWeight": 700 }, " ", { "text": "render", "fontWeight": 700 }, "(frame: ",
          { "text": "u32", "fill": "#4a4640" }, ") {\n",
          "    ", { "text": "let", "fill": "#4a4640", "fontWeight": 700 }, " t = frame ", { "text": "as", "fill": "#4a4640", "fontWeight": 700 }, " ",
          { "text": "f64", "fill": "#4a4640" }, " / ", { "text": "30.0", "italic": true }, ";\n",
          "    draw(t) ", { "text": "// pure function of time", "fill": "#8a857a", "italic": true }, "\n}"
        ] },
      { "id": "cursor", "type": "rect", "attach": "code", "x": 4, "width": 14, "height": 40, "fill": "#c92a26",
        "opacity": "=t < 3.3 ? 1 : floor(t * 2.5) % 2", "lint": { "ignore": ["invisible"] } }
    ]
  }]
}
