Same name and namespace in other branches
- 8.x-2.x src/ColorCMY.php \Drupal\color_field\ColorCMY::toHsl()
Get the color as an HSL instance.
Return value
\Drupal\color_field\ColorHSL The color as an HSL instance.
Overrides ColorInterface::toHsl
1 method overrides ColorCMY::toHsl()
- ColorCMYK::toHsl dans src/
ColorCMYK.php - Get the color as an HSL instance.
Fichier
-
src/
ColorCMY.php, line 128
Classe
- ColorCMY
- ColorCMY represents the CMY color format.
Namespace
Drupal\color_fieldCode
public function toHsl() : ColorHSL {
return $this->toRgb()
->toHsl();
}