Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. header("Content-type:image.png");
  3. $img = imagecreate(900, 900);
  4. $red=imagecolorallocate($img, 140, 140, 240);
  5. $red2=imagecolorallocate($img, 255, 0, 240);
  6. $coordX = 200;
  7. $coordY = 200;
  8. $height = 120;
  9. $width = 120;
  10. imageellipse($img, $coordX, $coordY, $width, $height, $red2);
  11. imageellipse($img, $coordX, $coordY, $width-50, $height-50, $red2);
  12. imageLine($img, $coordX, $coordY+50, $coordX, $coordY+350, $red2);
  13. if(isset($_GET['inputField1']))
  14. {
  15. for ($i=0; $i < $_GET['inputField1'] ; $i++) {
  16.    imageellipse($img, $coordX*$i, $coordY+100, $width-100, $height-50, $red2);
  17. }
  18. }
  19. ImagePng($img);
  20. imagedestroy($img);
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement