You are here

public function ColorCMY::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/ColorCMY.php, line 123

Class

ColorCMY
ColorCMY represents the CMY color format.

Namespace

Drupal\color_field

Code

public function toHsl() {
  return $this
    ->toRgb()
    ->toHsl();
}