{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "modes", "description": "maskMode: alpha and alphaInverted use the matte's opacity, luma and lumaInverted its brightness",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "alpha", "type": "rect", "x": 200, "width": 240, "height": 300, "cornerRadius": 2,
        "fill": { "type": "linear", "angle": 160, "stops": ["#4a4640", "#161412"] },
        "mask": { "type": "star", "x": 200, "width": "=200 + 30 * sin(t * pi)", "height": "=200 + 30 * sin(t * pi)", "rotation": "=t * 30" } },
      { "id": "alphaInverted", "type": "rect", "x": 493, "width": 240, "height": 300, "cornerRadius": 2, "maskMode": "alphaInverted",
        "fill": { "type": "linear", "angle": 160, "stops": ["#4a4640", "#161412"] },
        "mask": { "type": "star", "x": 493, "width": "=200 + 30 * sin(t * pi)", "height": "=200 + 30 * sin(t * pi)", "rotation": "=t * 30" } },
      { "id": "luma", "type": "rect", "x": 786, "width": 240, "height": 300, "cornerRadius": 2, "maskMode": "luma",
        "fill": { "type": "linear", "angle": 160, "stops": ["#1f5fb0", "#161412"] },
        "mask": { "type": "rect", "x": 786, "width": 240, "height": 300,
                  "fill": { "type": "linear", "angle": { "from": 0, "to": 360, "duration": "4s", "ease": "linear" }, "stops": ["#fff", "#000"] } } },
      { "id": "lumaInverted", "type": "rect", "x": 1080, "width": 240, "height": 300, "cornerRadius": 2, "maskMode": "lumaInverted",
        "fill": { "type": "linear", "angle": 160, "stops": ["#1f5fb0", "#161412"] },
        "mask": { "type": "rect", "x": 1080, "width": 240, "height": 300,
                  "fill": { "type": "linear", "angle": { "from": 0, "to": 360, "duration": "4s", "ease": "linear" }, "stops": ["#fff", "#000"] } } },
      { "id": "label", "type": "text", "text": "${pick(i, ['alpha', 'alphaInverted', 'luma', 'lumaInverted'])}", "font": "JetBrains Mono",
        "fontSize": 18, "letterSpacing": 1.6, "fill": "#8a857a", "x": 640, "y": 560, "repeat": { "count": 4, "layout": "row", "spacing": 293 } }
    ]
  }]
}
