public function ColorCMYK::toHsl in Color Field 8.2
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();
}