{
  "$schema": "../../schema.json",
  "id": "radial-moss-night",
  "type": "background",
  "title": "Radial Gradient · moss at night",
  "summary": "Radial gradient with up to 10 blended colors, featuring advanced mixing modes, focal point controls, shape distortion, and grain effects, in moss at night.",
  "tags": [
    "background",
    "radial-gradient",
    "still",
    "dark",
    "night",
    "moss"
  ],
  "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": "falloff",
      "type": "number",
      "default": 0.33,
      "description": "Gradient decay, 0 = equal color distribution",
      "min": -1,
      "max": 1,
      "step": 0.01,
      "group": "main"
    },
    {
      "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": "colorBack",
      "type": "color",
      "default": "#00000000",
      "description": "background color behind the effect",
      "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": "advanced"
    },
    {
      "name": "colors",
      "type": "colors",
      "default": [
        "#5E7457",
        "#A9B98A",
        "#E9EDCF"
      ],
      "description": "palette colors (hex)",
      "maxItems": 10,
      "group": "main"
    },
    {
      "name": "grainMixer",
      "type": "number",
      "default": 0.3,
      "description": "grain mixed into the colors",
      "min": 0,
      "max": 1,
      "step": 0.005,
      "group": "advanced"
    },
    {
      "name": "grainOverlay",
      "type": "number",
      "default": 0.2,
      "description": "grain laid over the image",
      "min": 0,
      "max": 1,
      "step": 0.005,
      "group": "advanced"
    }
  ],
  "install": {
    "kind": "shader-set",
    "entry": {
      "shader": "StaticRadialGradient",
      "props": {
        "scale": 1,
        "offsetX": 0,
        "offsetY": 0.06,
        "radius": 1.09,
        "focalDistance": 0.74,
        "falloff": 0.33,
        "mixing": 0.64,
        "distortionShift": 0,
        "distortionFreq": 12,
        "colorBack": "#00000000",
        "focalAngle": 0,
        "colors": [
          "#5E7457",
          "#A9B98A",
          "#E9EDCF"
        ],
        "grainMixer": 0.3,
        "grainOverlay": 0.2
      },
      "background": "#1F231C"
    }
  },
  "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', 'radial-moss-night');",
  "notes": [
    "Paper shader `StaticRadialGradient` (still). Tuned by hand in Paper."
  ],
  "preview": {
    "poster": "previews/radial-moss-night.jpg"
  },
  "colors": [
    "#1f231c",
    "#5e7457",
    "#a9b98a",
    "#e9edcf"
  ],
  "mode": "dark",
  "motion": "still",
  "mood": [
    "calm",
    "minimal",
    "warm"
  ],
  "when": [
    "a quiet ground behind type",
    "a dark calm piece"
  ]
}