Skip to content

Write HTML. Render video. Built for agents.

3.7 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "cosmic-orb",
  "type": "hyperframes:block",
  "title": "Cosmic Orb",
  "description": "An iridescent soap-bubble planet: a slowly spinning sphere of nebula bands, dust lanes and twinkling stars wrapped in a refracting glass limb with chromatic aberration at the edge.",
  "stability": "experimental",
  "dimensions": {
    "width": 1920,
    "height": 1080
  },
  "duration": 10,
  "tags": ["webgl", "shader", "background", "showcase", "3d"],
  "variables": [
    {
      "id": "hue",
      "type": "number",
      "label": "Nebula hue",
      "default": 268,
      "min": 0,
      "max": 360,
      "step": 1,
      "unit": "deg"
    },
    {
      "id": "accent",
      "type": "number",
      "label": "Accent hue",
      "default": 196,
      "min": 0,
      "max": 360,
      "step": 1,
      "unit": "deg"
    },
    {
      "id": "spin",
      "type": "number",
      "label": "Spin rate",
      "default": 0.035,
      "min": 0,
      "max": 0.5,
      "step": 0.005,
      "unit": "turns/s"
    },
    {
      "id": "stars",
      "type": "number",
      "label": "Star density",
      "default": 1,
      "min": 0,
      "max": 2,
      "step": 0.05
    },
    {
      "id": "glow",
      "type": "number",
      "label": "Glow intensity",
      "default": 1,
      "min": 0,
      "max": 2,
      "step": 0.05
    },
    {
      "id": "size",
      "type": "number",
      "label": "Orb size",
      "default": 0.86,
      "min": 0.2,
      "max": 1.2,
      "step": 0.01
    },
    {
      "id": "pulse",
      "type": "number",
      "label": "Beat pulse",
      "default": 0,
      "min": 0,
      "max": 1,
      "step": 0.01
    },
    {
      "id": "pulseEnvelope",
      "type": "string",
      "label": "Beat pulse envelope (comma-separated 0-1 samples)",
      "default": "",
      "placeholder": "0,0.2,1,0.4,0"
    },
    {
      "id": "backdrop",
      "type": "color",
      "label": "Backdrop",
      "default": "#04040a"
    }
  ],
  "files": [
    {
      "path": "cosmic-orb.html",
      "target": "compositions/cosmic-orb.html",
      "type": "hyperframes:composition"
    }
  ],
  "params": [
    {
      "key": "--hue",
      "label": "Nebula hue",
      "type": "number",
      "default": "268",
      "min": 0,
      "max": 360,
      "step": 1
    },
    {
      "key": "--accent",
      "label": "Accent hue",
      "type": "number",
      "default": "196",
      "min": 0,
      "max": 360,
      "step": 1
    },
    {
      "key": "--spin",
      "label": "Spin rate (turns per second)",
      "type": "number",
      "default": "0.035",
      "min": 0,
      "max": 0.5,
      "step": 0.005
    },
    {
      "key": "--stars",
      "label": "Star density",
      "type": "number",
      "default": "1",
      "min": 0,
      "max": 2,
      "step": 0.05
    },
    {
      "key": "--glow",
      "label": "Glow intensity",
      "type": "number",
      "default": "1",
      "min": 0,
      "max": 2,
      "step": 0.05
    },
    {
      "key": "--size",
      "label": "Orb size (fraction of frame height)",
      "type": "number",
      "default": "0.86",
      "min": 0.2,
      "max": 1.2,
      "step": 0.01
    },
    {
      "key": "--pulse",
      "label": "Beat pulse (0-1, flat value when no envelope is set)",
      "type": "number",
      "default": "0",
      "min": 0,
      "max": 1,
      "step": 0.01
    },
    {
      "key": "--pulseenvelope",
      "label": "Beat pulse envelope: comma-separated 0-1 samples spread evenly across the clip",
      "type": "text",
      "default": ""
    },
    {
      "key": "--backdrop",
      "label": "Backdrop",
      "type": "color",
      "default": "#04040a"
    }
  ]
}