{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "anchors", "description": "Same x and y, three anchors: each square sits on and rotates around its own anchor",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "topLeft", "type": "rect", "anchor": "top-left", "x": "25%", "y": "47%", "width": 190, "height": 110,
        "cornerRadius": 3, "fill": "#161412", "rotation": "=90 * easeInOutCubic(pingpong(max(t - 0.5, 0) / 1.5, 1))" },
      { "id": "center", "type": "rect", "anchor": "center", "x": "50%", "y": "47%", "width": 190, "height": 110,
        "cornerRadius": 3, "fill": "#161412", "rotation": "=90 * easeInOutCubic(pingpong(max(t - 0.5, 0) / 1.5, 1))" },
      { "id": "bottomRight", "type": "rect", "anchor": "bottom-right", "x": "75%", "y": "47%", "width": 190, "height": 110,
        "cornerRadius": 3, "fill": "#161412", "rotation": "=90 * easeInOutCubic(pingpong(max(t - 0.5, 0) / 1.5, 1))" },
      { "id": "dot", "type": "ellipse", "repeat": 3, "x": "=pw * (0.25 + 0.25 * i)", "y": "47%", "width": 20,
        "fill": "#c92a26", "stroke": "#f4f1ea", "strokeWidth": 4 },
      { "id": "label", "type": "text", "repeat": 3, "x": "=pw * (0.25 + 0.25 * i)", "y": "84%", "font": "JetBrains Mono",
        "fontSize": 20, "fill": "#4a4640", "text": "\"anchor\": \"${pick(i, ['top-left', 'center', 'bottom-right'])}\"" },
      { "id": "title", "type": "text", "text": "x and y place the anchor point", "font": "Schibsted Grotesk", "fontWeight": 860,
        "fontSize": 52, "letterSpacing": -2.2, "fill": "#161412", "y": "13%" }
    ]
  }]
}
