function _typeof(obj) {
            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
              _typeof = function _typeof(obj) {
                return typeof obj;
              };
            } else {
              _typeof = function _typeof(obj) {
                return obj &&
                  typeof Symbol === 'function' &&
                  obj.constructor === Symbol &&
                  obj !== Symbol.prototype
                  ? 'symbol'
                  : typeof obj;
              };
            }
            return _typeof(obj);
          }
Extracts the saturation value from a color or pixel array.

Saturation is scaled differently in HSB and HSL. This function will return
the HSB saturation when supplied with an HSB color object (or when supplied
with a pixel array while the color mode is HSB), but will default to the
HSL saturation otherwise.

@method saturation
@param {p5.Color|Number[]|String} color <a href="#/p5.Color">p5.Color</a> object, color components,
                                        or CSS color
@return {Number} the saturation value
@example
<div>
<code>
noStroke();
colorMode(HSB, 255);
let c = color(0, 126, 255);
fill(c);
rect(15, 20, 35, 60);
let value = saturation(c); // Sets 'value' to 126
fill(value);
rect(50, 20, 35, 60);
</code>
</div>

@alt
deep pink rect on left and grey rect on right, both 35x60.