public function ColorInterface::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.
5 methods override ColorInterface::toRgb()
- ColorCMY::toRgb in src/
ColorCMY.php - Get the color as a RGB instance.
- ColorCMYK::toRgb in src/
ColorCMYK.php - Get the color as a RGB instance.
- ColorHex::toRgb in src/
ColorHex.php - Get the color as a RGB instance.
- ColorHSL::toRgb in src/
ColorHSL.php - Get the color as a RGB instance.
- ColorRGB::toRgb in src/
ColorRGB.php - Get the color as a RGB instance.
File
- src/
ColorInterface.php, line 32
Class
- ColorInterface
- Defines a common interface for color classes.
Namespace
Drupal\color_fieldCode
public function toRgb();