saturation method

Dimension saturation(
  1. Node color
)

Extracts the saturation channel of a color object in the HSL color space.

Parameters: color - a color object. Returns: percentage 0-100 Example: saturation(hsl(90, 100%, 50%)) Output: 100%

Implementation

Dimension saturation(Node color) => Dimension(toHSL(color).s * 100, '%');