<?php header('Content-type: image/jpeg'); $image = imagecreatetruecolor(200, 200); $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); // columns for($i = 0; $i != 200; $i++) // rows for ($j = 0; $j != 200;$j++) imagesetpixel($image, $i, $j, (rand(0, 1)) ? $black : $white); imagejpeg($image); ?> PHP:
Yeahh I looked back at my code after threading this and was like "What the fuck am I using those arrays for" lol got it all working here now though jordan-adams.co.uk/work/php/random/noise-gen