You are here

public function ColorInterface::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.

5 methods override ColorInterface::toHsl()
ColorCMY::toHsl in src/ColorCMY.php
Get the color as a HSL instance.
ColorCMYK::toHsl in src/ColorCMYK.php
Get the color as a HSL instance.
ColorHex::toHsl in src/ColorHex.php
Get the color as a HSL instance.
ColorHSL::toHsl in src/ColorHSL.php
Get the color as a HSL instance.
ColorRGB::toHsl in src/ColorRGB.php
Get the color as a HSL instance.

File

src/ColorInterface.php, line 40

Class

ColorInterface
Defines a common interface for color classes.

Namespace

Drupal\color_field

Code

public function toHsl();