Same name and namespace in other branches
- 3.0.x src/ColorRGB.php \Drupal\color_field\ColorRGB::getGreen() 1 commentaire
Get the green value (rounded).
Return value
int The green value
3 calls to ColorRGB::getGreen()
- ColorRGB::toHex dans src/
ColorRGB.php - Get the color as a hex instance.
- ColorRGB::toHsl dans src/
ColorRGB.php - Get the color as a HSL instance.
- ColorRGB::toString dans src/
ColorRGB.php - A string representation of this color in the current format.
Fichier
-
src/
ColorRGB.php, line 79
Classe
- ColorRGB
- RGB represents the RGB color format.
Namespace
Drupal\color_fieldCode
public function getGreen() {
return 0.5 + $this->green | 0;
}