function pDraw::getRandomColor in Visitors 7
Same name and namespace in other branches
- 7.2 pChart/class/pDraw.class.php \pDraw::getRandomColor()
2 calls to pDraw::getRandomColor()
- pDraw::drawBarChart in pChart/
class/ pDraw.class.php - pDraw::validatePalette in pChart/
class/ pDraw.class.php
File
- pChart/
class/ pDraw.class.php, line 5195
Class
Code
function getRandomColor($Alpha = 100) {
return array(
"R" => rand(0, 255),
"G" => rand(0, 255),
"B" => rand(0, 255),
"Alpha" => $Alpha,
);
}