{
  "fonts": [
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono-Italic.ttf" }
  ],
  "compositions": [{
    "id": "code", "description": "Typewriter code: rich-text spans typed out, with a blinking cursor attached to the last character",
    "width": 1280, "height": 720, "fps": 30, "duration": "5s", "background": "#f4f1ea",
    "layers": [
      { "id": "panel", "type": "rect", "width": 860, "height": 340, "cornerRadius": 4, "fill": "#fbf9f4",
        "stroke": "#161412", "strokeWidth": 2 },
      { "id": "code", "type": "text", "font": "JetBrains Mono", "fontSize": 30, "align": "left", "whiteSpace": "pre",
        "anchor": "top-left", "x": 260, "y": 270, "lineHeight": 1.5, "fill": "#4a4640",
        "text": [
          { "text": "let", "fill": "#161412", "fontWeight": 800 }, " clip = ", { "text": "render", "fill": "#c92a26", "fontWeight": 700 }, "(project);\n",
          { "text": "if", "fill": "#161412", "fontWeight": 800 }, " clip.ok {\n",
          "    publish(clip, ", { "text": "\"1080p\"", "fill": "#161412", "fontWeight": 700 }, ");\n",
          "}", { "text": "  // every frame checked", "fill": "#8a857a", "italic": true }
        ],
        "enter": { "type": "typewriter", "duration": "3s", "ease": "linear" } },
      { "id": "cursor", "type": "rect", "width": 3, "height": 36, "fill": "#161412", "attach": "code", "x": 4,
        "opacity": "=t < 3 ? 1 : floor(t * 2.5) % 2" }
    ]
  }]
}
