function pDraw::getRandomColor

5.x pDraw.class.php pDraw::getRandomColor($Alpha = 100)
2 calls to pDraw::getRandomColor()
pDraw::drawBarChart in inc/pchart/pchart/class/pDraw.class.php
pDraw::validatePalette in inc/pchart/pchart/class/pDraw.class.php

File

inc/pchart/pchart/class/pDraw.class.php, line 5195

Class

pDraw

Code

function getRandomColor($Alpha = 100) 
 {
  return (array("R" => rand(0, 255), "G" => rand(0, 255), "B" => rand(0, 255), "Alpha" => $Alpha));
}