public function ColorBase::getOpacity in Color Field 8.2
Get the opacity.
Return value
float The opacity value between 0 and 1.
9 calls to ColorBase::getOpacity()
- ColorCMY::toRgb in src/
ColorCMY.php - Get the color as a RGB instance.
- ColorCMYK::toCmy in src/
ColorCMYK.php - ColorHex::toRgb in src/
ColorHex.php - Get the color as a RGB instance.
- ColorHex::toString in src/
ColorHex.php - A string representation of this color in the current format.
- ColorHSL::toRgb in src/
ColorHSL.php - Get the color as a RGB instance.
File
- src/
ColorBase.php, line 23
Class
- ColorBase
- Base color class to ease implementations.
Namespace
Drupal\color_fieldCode
public function getOpacity() {
return $this->opacity;
}