{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "orrery", "description": "An orrery from expressions: each position is computed from t alone, so any frame renders on its own",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s",
    "background": "#f4f1ea",
    "motionBlur": { "samples": 8, "shutter": 0.6 },
    "layers": [
      { "id": "orbit-a", "type": "ellipse", "width": 480, "fill": null, "stroke": "#161412", "strokeWidth": 1.5 },
      { "id": "orbit-b", "type": "ellipse", "width": 280, "fill": null, "stroke": "#8a857a", "strokeWidth": 1 },
      { "id": "orbit-c", "type": "ellipse", "width": 640, "fill": null, "stroke": "#8a857a", "strokeWidth": 1, "dash": [3, 9] },
      { "id": "halo", "type": "ellipse", "width": 420, "fill": "#16141210" },
      { "id": "sun", "type": "ellipse", "width": 96, "scale": "=1 + 0.04 * sin(t * tau)", "fill": "#161412" },
      { "id": "inner", "type": "ellipse", "width": 20, "fill": "#4a4640",
        "x": "=w/2 + cos(t * tau / 2) * 140", "y": "=h/2 + sin(t * tau / 2) * 140" },
      { "id": "planet", "type": "ellipse", "width": 34, "fill": "#c92a26",
        "x": "=w/2 + cos(t * tau / 4 + 1) * 240", "y": "=h/2 + sin(t * tau / 4 + 1) * 240" },
      { "id": "moon", "type": "ellipse", "width": 10, "fill": "#161412",
        "x": "=w/2 + cos(t * tau / 4 + 1) * 240 + cos(t * tau) * 34",
        "y": "=h/2 + sin(t * tau / 4 + 1) * 240 + sin(t * tau) * 34" },
      { "id": "comet", "type": "ellipse", "width": 12, "fill": "#f4f1ea", "stroke": "#161412", "strokeWidth": 2,
        "x": "=w/2 + cos(-t * tau / 4) * 320", "y": "=h/2 + sin(-t * tau / 4) * 320" },
      { "id": "readout", "type": "text", "text": "t = ${t:2}s", "font": "JetBrains Mono", "fontSize": 20,
        "fill": "#161412", "anchor": "left", "x": 64, "y": 656 },
      { "id": "formula", "type": "text", "text": "x = w/2 + cos(t·τ/4 + 1)·240", "font": "JetBrains Mono", "fontSize": 20,
        "fill": "#8a857a", "anchor": "right", "x": 1216, "y": 656 }
    ]
  }]
}
