Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-type: image/png");
- $rysunek = imagecreate (300,300);
- $kolorbialy = imagecolorallocate ($rysunek, 255, 255, 255);
- $kolorczerwony = imagecolorallocate ($rysunek, 255, 0, 0);
- $kolorczarny = imagecolorallocate ($rysunek, 0, 0, 0);
- imagefill ($rysunek, 0, 0, $kolorbialy);
- for ($i=1; $i<=300; $i++) {
- imagesetpixel ($rysunek, rand()%200-1, rand()%200-1, $kolorczerwony);
- imagesetpixel ($rysunek, rand()%200-1, rand()%200-1, $kolorczarny);
- }
- imagepng ($rysunek);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement