Same name and namespace in other branches
- 3.0.x src/ColorCMYK.php \Drupal\color_field\ColorCMYK::toHsl()
Get the color as a HSL instance.
Return value
\Drupal\color_field\ColorHSL The color as a HSL instance.
Overrides ColorInterface::toHsl
File
-
src/
ColorCMYK.php, line 140
Class
- ColorCMYK
- ColorCMYK represents the CMYK color format.
Namespace
Drupal\color_fieldCode
public function toHsl() {
return $this->toRgb()
->toHsl();
}