You are here

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

Class

ColorHSL
RGB represents the RGB color format.

Namespace

Drupal\color_field

Code

public function toHsl() {
  return $this;
}