You are here

function pDraw::getRandomColor in Visitors 7.2

Same name and namespace in other branches
  1. 7 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

pDraw

Code

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