hue method

Dimension hue(
  1. Node color
)

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

Parameters: color - a color object. Returns: integer 0-360 Example: hue(hsl(90, 100%, 50%)) Output: 90

Implementation

Dimension hue(Node color) => Dimension(toHSL(color).h);