/** seed the random number generator **/
sq_mt_randomize();
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $i++) {
/* background/foreground toggle **/
- if (($i == 0) || ($i == 3) || ($i == 4) || ($i == 5)
- || ($i == 9) || ($i == 10) || ($i == 12)) {
+ if ($i == 0 || $i == 3 || $i == 4 || $i == 5
+ || $i == 9 || $i == 10 || $i == 12 || $i == 16) {
/* background */
$g = mt_rand(248,255);
$r = mt_rand(110,248);
/* seed the random number generator */
sq_mt_randomize();
-for ($i = 0; $i <= 15; $i++) {
+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) {
+ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) {
/* background */
$r = mt_rand(248,255);
$b = mt_rand(140,255);
/** seed the random number generator */
sq_mt_randomize();
-for ($i = 0; $i <= 15; $i++) {
+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) {
+ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) {
/* background */
$b = mt_rand(248,255);
$r = mt_rand(180,255);
$bt = mt_rand($cmin_t,$cmax_t);
/** set array element as hex string with hashmark (for HTML output) **/
-for ($i = 0; $i <= 15; $i++) {
- if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) {
+for ($i = 0; $i <= 16; $i++) {
+ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) {
$color[$i] = sprintf('#%02X%02X%02X',$rb,$gb,$bb);
} else {
$color[$i] = sprintf('#%02X%02X%02X',$rt,$gt,$bt);
/** seed the random number generator */
sq_mt_randomize();
-for ($i = 0; $i <= 15; $i++) {
+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) {
+ if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) {
/* background */
$r = mt_rand(176,255);
$g = $r;