You are here

public function ColorCMYK::toRgb in Color Field 8.2

Get the color as a RGB instance.

Return value

\Drupal\color_field\ColorRGB The color as a RGB instance.

Overrides ColorInterface::toRgb

File

src/ColorCMYK.php, line 123

Class

ColorCMYK
ColorCMYK represents the CMYK color format.

Namespace

Drupal\color_field

Code

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