{
  "params": {
    "shape": {
      "type": "choice",
      "options": [
        "light",
        "can",
        "cone",
        "barrel"
      ],
      "default": "light",
      "label": "Type",
      "describe": "light (round float with a lattice tower and lamp on top), can (flat-topped cylinder), cone (pointed conical buoy) or barrel (old tarred wooden barrel buoy with a pole and lantern, age of sail)."
    },
    "color": {
      "type": "choice",
      "options": [
        "red",
        "green",
        "yellow",
        "black and yellow",
        "red and white"
      ],
      "default": "red",
      "label": "Colour",
      "describe": "Paint: red (port side), green (starboard side), yellow (special mark), black and yellow bands (cardinal mark) or red and white bands (safe water). Plain colours only. The barrel type keeps its wood and gets painted hoops."
    },
    "light": {
      "type": "toggle",
      "default": true,
      "label": "Light",
      "describe": "A lamp on top that glows at night. Off leaves a plain day mark."
    },
    "size": {
      "type": "range",
      "min": 0.5,
      "max": 2,
      "step": 0.05,
      "default": 1,
      "label": "Size",
      "describe": "Uniform scale. 1 is a 2.6 m harbour light buoy; 0.5 a small mooring float; 2 a big offshore buoy."
    }
  },
  "presets": {
    "safe water": {
      "shape": "light",
      "color": "red and white"
    },
    "cardinal mark": {
      "shape": "cone",
      "color": "black and yellow",
      "size": 1.3
    },
    "smugglers marker": {
      "shape": "barrel",
      "color": "red",
      "size": 0.8
    }
  },
  "night": {
    "light": {
      "zone": "light",
      "color": "#ffe6a0",
      "intensity": 1.8,
      "describe": "The buoy lamp shines."
    }
  }
}