Same name and namespace in other branches
  1. 8.x-2.x src/ColorRGB.php \Drupal\color_field\ColorRGB::getGreen() 1 comment

Get the green value (rounded).

Return value

int The green value

3 calls to ColorRGB::getGreen()
ColorRGB::toHex in src/ColorRGB.php
Get the color as a hex instance.
ColorRGB::toHsl in src/ColorRGB.php
Get the color as an HSL instance.
ColorRGB::toString in src/ColorRGB.php
A string representation of this color in the current format.

File

src/ColorRGB.php, line 68

Class

ColorRGB
RGB represents the RGB color format.

Namespace

Drupal\color_field

Code

public function getGreen() : int {
    return $this->green;
}