function pPie::setSliceColor

5.x pPie.class.php pPie::setSliceColor($SliceID, $Format = "")

File

inc/pchart/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;
}