function pChart::setColorPalette in Visitors 7.0
Same name and namespace in other branches
- 8 pchart/pChart.inc \pChart::setColorPalette()
File
- pchart/
pChart.inc, line 175
Class
Code
function setColorPalette($ID, $R, $G, $B) {
if ($R < 0) {
$R = 0;
}
if ($R > 255) {
$R = 255;
}
if ($G < 0) {
$G = 0;
}
if ($G > 255) {
$G = 255;
}
if ($B < 0) {
$B = 0;
}
if ($B > 255) {
$B = 255;
}
$this->Palette[$ID]["R"] = $R;
$this->Palette[$ID]["G"] = $G;
$this->Palette[$ID]["B"] = $B;
}