You are here

public function ColorRGB::getBlue in Color Field 8.2

Get the blue value (rounded).

Return value

int The blue value

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

File

src/ColorRGB.php, line 89

Class

ColorRGB
RGB represents the RGB color format.

Namespace

Drupal\color_field

Code

public function getBlue() {
  return 0.5 + $this->blue | 0;
}