{
  "$schema": "../../schema.json",
  "id": "green-radial",
  "type": "background",
  "title": "Radial Gradient · green",
  "summary": "Radial gradient with up to 10 blended colors, featuring advanced mixing modes, focal point controls, shape distortion, and grain effects, in green.",
  "tags": [
    "background",
    "radial-gradient",
    "still",
    "light",
    "green"
  ],
  "version": "1.0.0",
  "license": "MIT",
  "params": [
    {
      "name": "scale",
      "type": "number",
      "default": 1,
      "description": "zoom of the pattern",
      "min": 0.01,
      "max": 4,
      "step": 0.01,
      "group": "main"
    },
    {
      "name": "offsetX",
      "type": "number",
      "default": 0,
      "description": "horizontal offset",
      "min": -1,
      "max": 1,
      "step": 0.01,
      "group": "advanced"
    },
    {
      "name": "offsetY",
      "type": "number",
      "default": 0.06,
      "description": "vertical offset",
      "min": -1,
      "max": 1,
      "step": 0.01,
      "group": "advanced"
    },
    {
      "name": "radius",
      "type": "number",
      "default": 1.09,
      "description": "radius",
      "min": 0,
      "max": 3,
      "step": 0.015,
      "group": "main"
    },
    {
      "name": "focalDistance",
      "type": "number",
      "default": 0.74,
      "description": "Distance of the focal point from center",
      "min": 0,
      "max": 3,
      "step": 0.015,
      "group": "main"
    },
    {
      "name": "focalAngle",
      "type": "number",
      "default": 0,
      "description": "Angle of the focal point in degrees, needs focalDistance > 0",
      "min": 0,
      "max": 360,
      "step": 1.8,
      "group": "main"
    },
    {
      "name": "falloff",
      "type": "number",
      "default": 0.33,
      "description": "Gradient decay, 0 = equal color distribution",
      "min": -1,
      "max": 1,
      "step": 0.01,
      "group": "advanced"
    },
    {
      "name": "mixing",
      "type": "number",
      "default": 0.64,
      "description": "Blending behavior, 0 = hard stripes, 1 = smooth gradient",
      "min": 0,
      "max": 1,
      "step": 0.005,
      "group": "advanced"
    },
    {
      "name": "distortionShift",
      "type": "number",
      "default": 0,
      "description": "Radial distortion offset, needs distortion > 0",
      "min": -1,
      "max": 1,
      "step": 0.01,
      "group": "advanced"
    },
    {
      "name": "distortionFreq",
      "type": "number",
      "default": 12,
      "description": "Radial distortion frequency, needs distortion > 0",
      "min": 0,
      "max": 20,
      "step": 0.1,
      "group": "advanced"
    },
    {
      "name": "colors",
      "type": "colors",
      "default": [
        "#5DC27E",
        "#C8EE6C",
        "#FFFFFF"
      ],
      "description": "palette colors (hex)",
      "maxItems": 10,
      "group": "main"
    },
    {
      "name": "colorBack",
      "type": "color",
      "default": "#00000000",
      "description": "background color behind the effect",
      "group": "main"
    }
  ],
  "install": {
    "kind": "shader-set",
    "entry": {
      "shader": "StaticRadialGradient",
      "props": {
        "scale": 1,
        "offsetX": 0,
        "offsetY": 0.06,
        "radius": 1.09,
        "focalDistance": 0.74,
        "focalAngle": 0,
        "falloff": 0.33,
        "mixing": 0.64,
        "distortionShift": 0,
        "distortionFreq": 12,
        "colors": [
          "#5DC27E",
          "#C8EE6C",
          "#FFFFFF"
        ],
        "colorBack": "#00000000"
      },
      "background": "#E4E4BD"
    }
  },
  "files": [],
  "requires": {
    "engine": ">=0.2.0"
  },
  "usage": "import { loadBrand } from 'paper-motion/brand';\n\nconst B = await loadBrand();\n// a full-frame element <div id=\"bg\"></div> behind everything:\nB.shader(s, '#bg', 'green-radial');",
  "notes": [
    "Paper shader `StaticRadialGradient` (still). Tuned by hand in Paper."
  ],
  "preview": {
    "poster": "previews/green-radial.jpg"
  },
  "colors": [
    "#e4e4bd",
    "#5dc27e",
    "#c8ee6c",
    "#ffffff"
  ],
  "mode": "light",
  "motion": "still",
  "mood": [
    "calm",
    "minimal",
    "warm"
  ],
  "when": [
    "a quiet ground behind type",
    "a light calm piece"
  ]
}