{
  "params": {
    "size": {
      "type": "range",
      "min": 0.8,
      "max": 2.4,
      "step": 0.1,
      "default": 1.6,
      "label": "Size",
      "describe": "Height in metres to the top of the hat. 0.8 is a child-built snowman, 2.4 a giant."
    },
    "scarf": {
      "type": "choice",
      "options": [
        "red",
        "green",
        "blue",
        "yellow",
        "purple"
      ],
      "default": "red",
      "label": "Scarf",
      "describe": "Colour of the knitted scarf (its ends are striped), also used on the hat band and the beanie: red, green, blue, yellow or purple."
    },
    "hat": {
      "type": "choice",
      "options": [
        "top hat",
        "beanie",
        "bucket",
        "none"
      ],
      "default": "top hat",
      "label": "Hat",
      "describe": "top hat (black with a coloured band), beanie (knitted with a pom-pom), bucket (an upturned tin bucket) or none."
    },
    "lean": {
      "type": "range",
      "min": -0.3,
      "max": 0.3,
      "step": 0.01,
      "default": 0.06,
      "label": "Lean",
      "describe": "Sideways tilt of the upper body and head in radians, for a melting or jolly look. Negative leans to its right, positive to its left; 0 stands straight."
    }
  },
  "presets": {
    "classic gentleman": {
      "hat": "top hat",
      "scarf": "red",
      "lean": 0
    },
    "cosy kid": {
      "hat": "beanie",
      "scarf": "blue",
      "size": 1,
      "lean": -0.1
    },
    "tipsy tin hat": {
      "hat": "bucket",
      "scarf": "yellow",
      "lean": 0.26
    }
  },
  "night": null
}