hsvvalue method

Dimension hsvvalue(
  1. Node color
)

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

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

Implementation

Dimension hsvvalue(Node color) => Dimension(toHSV(color).v * 100, '%');