Php code
$ Width? $ Length * 10 + 10: $ width; if ($ type! = 'GIF' & function_exists ('imagecreatetruecolor') {$ im = @ imagecreatetruecolor ($ width, $ height);} else {$ im = @ imagecreate ($ width, $ height) ;}$ r = Array (225,255,255,223); $ g = Array (225,236,237,255); $ B = Array (225,236,166,125); $ key = mt_rand ); $ backColor = imagecolorallocate ($ im, $ r [$ key], $ g [$ key], $ B [$ key]); // background color (random) $ borderColor = imagecolorallocate ($ im, 100,100,100); // border color $ pointColor = imagecolorallocate ($ im, mt_rand (0,255), mt_rand (0,255), mt_rand (0,255 )); // color @ imagefilledrectangle ($ im, 0, 0, $ width-1, $ height-1, $ backColor); @ imagerectangle ($ im, 0, 0, $ width-1, $ height-1, $ borderColor); $ stringColor = imagecolorallocate ($ im, mt_rand (0,200), mt_rand (0,120), mt_rand (0,120 )); // interfere with for ($ I = 0; $ I <10; $ I ++) {$ fontcolor = imagecolorallocate ($ im, mt_rand (0,255), mt_rand (0,255 ), mt_rand (0,255); imagearc ($ im, mt_rand (-10, $ width), mt_rand (-10, $ height), mt_rand (30,300), mt_rand (20,200 ), 55,44, $ fontcolor) ;}for ($ I = 0; $ I <25; $ I ++) {$ fontcolor = imagecolorallocate ($ im, mt_rand (0,255 ), mt_rand (0,255), mt_rand (0,255); imagesetpixel ($ im, mt_rand (0, $ width), mt_rand (0, $ height), $ pointColor );} for ($ I = 0; $ I <$ length; $ I ++) {imagestring ($ im, 5, $ I * 10 + 5, mt_rand (1, 8 ), $ randval {$ I}, $ stringColor);} // @ imagestring ($ im, 5, 5, 3, $ randval, $ stringColor); # Image :: output ($ im, $ type); header ("Content-type: image /". $ type); $ ImageFun = 'image '. $ type; if (empty ($ filename) {$ ImageFun ($ im);} else {$ ImageFun ($ im, $ filename);} imagedestroy ($ im );