Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $image = imagecreatetruecolor(200, 50);
- $background_color = imagecolorallocate($image, 255, 255, 255);
- imagefilledrectangle($image,0,0,200,50,$background_color);
- $line_color = imagecolorallocate($image, 211,211,211);
- for($i=0;$i<40;$i++) {
- imageline($image,0,rand()%50,200,rand()%50,$line_color);
- }
- imagepng($image, "image.png");
Add Comment
Please, Sign In to add comment