/** * Returns the 'value' channel of @color in the HSV space * * @param ColorNode $color * @return string */ public function hsvvalue(Node $color) { if (!$color instanceof ColorNode) { return $color; } $hsv = $color->toHSV(); return new DimensionNode(Math::round($hsv['v'] * 100), '%'); }