hsvhue method

Dimension hsvhue(
  1. Node color
)

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

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

Implementation

Dimension hsvhue(Node color) => Dimension(toHSV(color).h);