You are here

private static function PHPExcel_Reader_Excel2007_Chart::_readColor in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php \PHPExcel_Reader_Excel2007_Chart::_readColor()
1 call to PHPExcel_Reader_Excel2007_Chart::_readColor()
PHPExcel_Reader_Excel2007_Chart::_parseRichText in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php, line 54

Class

PHPExcel_Reader_Excel2007_Chart
PHPExcel_Reader_Excel2007_Chart

Code

private static function _readColor($color, $background = false) {
  if (isset($color["rgb"])) {
    return (string) $color["rgb"];
  }
  else {
    if (isset($color["indexed"])) {
      return PHPExcel_Style_Color::indexedColor($color["indexed"] - 7, $background)
        ->getARGB();
    }
  }
}