Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-type:image.png");
- $img = imagecreate(900, 900);
- $red=imagecolorallocate($img, 140, 140, 240);
- $red2=imagecolorallocate($img, 255, 0, 240);
- $coordX = 200;
- $coordY = 200;
- $height = 120;
- $width = 120;
- imageellipse($img, $coordX, $coordY, $width, $height, $red2);
- imageellipse($img, $coordX, $coordY, $width-50, $height-50, $red2);
- imageLine($img, $coordX, $coordY+50, $coordX, $coordY+350, $red2);
- if(isset($_GET['inputField1']))
- {
- for ($i=0; $i < $_GET['inputField1'] ; $i++) {
- imageellipse($img, $coordX*$i, $coordY+100, $width-100, $height-50, $red2);
- }
- }
- ImagePng($img);
- imagedestroy($img);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement