{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "drawmode", "description": "One hand-lettered path of 15 strokes: drawMode each (top) starts them all at once, total (bottom) writes them in order",
    "width": 1280, "height": 720, "fps": 30, "duration": "4.5s", "background": "#f4f1ea",
    "layers": [
      { "id": "label", "type": "text", "x": 317, "y": "=pick(i, [107, 407])", "anchor": "left", "repeat": 2,
        "font": "JetBrains Mono", "fontSize": 22, "fill": "=pick(i, ['#8a857a', '#161412'])", "text": "\"drawMode\": \"${pick(i, ['each', 'total'])}\"" },
      { "id": "note", "type": "text", "x": 980, "y": "=pick(i, [107, 407])", "anchor": "right", "repeat": 2,
        "font": "Schibsted Grotesk", "italic": true, "fontSize": 24, "fill": "#4a4640", "text": "${pick(i, ['15 strokes start together', 'one pen, stroke after stroke'])}" },
      { "id": "each", "type": "path", "anchor": "top-left", "x": 300, "y": 140, "width": 680, "height": 185,
        "fill": null, "stroke": "#8a857a", "strokeWidth": 9, "lineCap": "round", "d": "M20 80 L60 180 L100 80 M135 80 L135 180 M135 42 L135 44 M255 100 C240 80 220 78 205 80 C175 82 158 105 158 130 C158 158 178 180 205 180 C228 180 248 165 255 145 M255 20 L255 180 M295 80 L295 180 M295 115 C300 90 315 80 330 80 C350 80 360 95 360 115 L360 180 M360 115 C365 90 380 80 395 80 C415 80 425 95 425 115 L425 180 M545 105 C535 87 520 80 505 80 C478 80 462 105 462 130 C462 158 480 180 505 180 C525 180 540 168 545 150 M545 80 L545 180 M590 20 L590 180 M650 80 L590 140 M610 122 L655 180 M690 130 L780 130 C780 100 760 80 735 80 C705 80 688 105 688 130 C688 160 708 180 735 180 C755 180 770 172 780 160 M20 215 C250 200 550 205 790 210",
        "drawEnd": { "from": 0, "to": 1, "duration": "3s", "ease": "easeInOutSine" }, "exit": { "type": "fade", "duration": "0.4s" } },
      { "id": "total", "type": "path", "drawMode": "total", "anchor": "top-left", "x": 300, "y": 440, "width": 680, "height": 185,
        "fill": null, "stroke": "#161412", "strokeWidth": 9, "lineCap": "round", "d": "M20 80 L60 180 L100 80 M135 80 L135 180 M135 42 L135 44 M255 100 C240 80 220 78 205 80 C175 82 158 105 158 130 C158 158 178 180 205 180 C228 180 248 165 255 145 M255 20 L255 180 M295 80 L295 180 M295 115 C300 90 315 80 330 80 C350 80 360 95 360 115 L360 180 M360 115 C365 90 380 80 395 80 C415 80 425 95 425 115 L425 180 M545 105 C535 87 520 80 505 80 C478 80 462 105 462 130 C462 158 480 180 505 180 C525 180 540 168 545 150 M545 80 L545 180 M590 20 L590 180 M650 80 L590 140 M610 122 L655 180 M690 130 L780 130 C780 100 760 80 735 80 C705 80 688 105 688 130 C688 160 708 180 735 180 C755 180 770 172 780 160 M20 215 C250 200 550 205 790 210",
        "drawEnd": { "from": 0, "to": 1, "duration": "3s", "ease": "easeInOutSine" }, "exit": { "type": "fade", "duration": "0.4s" } },
      { "id": "pen", "type": "ellipse", "attach": "total", "width": 18, "fill": "#c92a26",
        "opacity": { "from": 1, "to": 0, "start": "3s", "duration": "0.3s" } }
    ]
  }]
}
