You are here

public static function PHPExcel_Style_Color::getBlue in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php \PHPExcel_Style_Color::getBlue()

* Get the blue colour component of an RGB value * *

Parameters

string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE: * @param boolean $hex Flag indicating whether the component should be returned as a hex or a * decimal value * @return string The blue colour component

1 call to PHPExcel_Style_Color::getBlue()
PHPExcel_Style_Color::changeBrightness in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php
* Adjust the brightness of a color * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php, line 289

Class

PHPExcel_Style_Color
PHPExcel_Style_Color

Code

public static function getBlue($RGB, $hex = TRUE) {
  return self::_getColourComponent($RGB, strlen($RGB) - 2, $hex);
}