You are here

function pPie::setSliceColor in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pPie.class.php \pPie::setSliceColor()

File

pChart/class/pPie.class.php, line 785

Class

pPie

Code

function setSliceColor($SliceID, $Format = "") {
  $R = isset($Format["R"]) ? $Format["R"] : 0;
  $G = isset($Format["G"]) ? $Format["G"] : 0;
  $B = isset($Format["B"]) ? $Format["B"] : 0;
  $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
  $this->pDataObject->Palette[$SliceID]["R"] = $R;
  $this->pDataObject->Palette[$SliceID]["G"] = $G;
  $this->pDataObject->Palette[$SliceID]["B"] = $B;
  $this->pDataObject->Palette[$SliceID]["Alpha"] = $Alpha;
}