Source for file spice_of_life.php
Documentation is available at spice_of_life.php
* Comment Generates random colors for each frame,
* featuring either a dark or light background.
* @copyright 2000-2018 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: spice_of_life.php 14749 2018-01-16 23:36:07Z pdontthink $
/** seed the random number generator **/
/** light(1) or dark(0) background? **/
for ($i =
0; $i <=
16; $i++
) {
/** background/foreground toggle **/
if ($i ==
0 or $i ==
3 or $i ==
4 or $i ==
5 or $i ==
9 or $i ==
10 or $i ==
12 or $i ==
16) {
/** generate random color **/
/** set array element as hex string with hashmark (for HTML output) **/
$color[$i] =
sprintf('#%02X%02X%02X',$r,$g,$b);
Documentation generated on Tue, 17 Apr 2018 04:26:59 +0200 by phpDocumentor 1.4.3