HEX FLOWER

QR - ibulla

The colors change every 10 seconds.
The QR code shows the current time and date.
The values are randomly generated and converted to hex colors...

[122.27.142]
[#648164]
[136.173.58]

HEX FLOWER

QR - ibulla

Script

mt_srand((double)microtime()*1000000);
$ab = mt_rand(16,255);
$farbeab = dechex($ab);
$bc = mt_rand(16,255);
$farbebb = dechex($bc);
$cd = mt_rand(16,255);
$farbecb = dechex($cd);
$farbehexx = $farbeab . $farbebb . $farbecb;

mt_srand((double)microtime()*1000000);
$aa = mt_rand(16,255);
$farbea = dechex($aa);
$bb = mt_rand(16,255);
$farbeb = dechex($bb);
$cc = mt_rand(16,255);
$farbec = dechex($cc);
$farbehex = $farbea . $farbeb . $farbec;

$mix = ($ab + $aa) /2;
$mixr= dechex($mix);
$mix1 = ($bc + $bb) /2;
$mixg= dechex($mix1);
$mix2 = ($cd + $cc) /2;
$mixb= dechex($mix2);
$farbemix = $mixr . $mixg . $mixb;

$hoch = mt_rand(20,180);

$im = imagecreate(350, $hoch);
$farbefull = imagecolorallocate ($im, $ab, $bc, $cd);
imagefill ($im, 0, 0, $farbefull);
imagepng($im, "im_test.png");
imagedestroy($im);

$hoch1 = (200 - $hoch);

$im1 = imagecreate(350, $hoch1);
$farbefull1 = imagecolorallocate ($im1, $aa, $bb, $cc);
imagefill ($im1, 0, 0, $farbefull1);
imagepng($im1, "im_test1.png");
imagedestroy($im1);

srand((double)microtime()*1000000);
$zufallszahl = rand(39,390);
$zahl = decbin($zufallszahl);

$zone = date_default_timezone_set('UTC+1');
$datum = date ('d M Y');
$datum1 = date ('H \: i \: s');

$qrin = "https://chart.googleapis.com/chart?chs=350x350&cht=qr&chl=$datum$datum1&chld=M|1";
$qrbulla = "<img> src='$qrin' width='150' alt='QR - ibulla'</img>";