Skip to content

Instantly share code, notes, and snippets.

@ozelfatih
Created January 20, 2017 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozelfatih/7b2b75724498abb1cf20dc155c97f5c5 to your computer and use it in GitHub Desktop.
Save ozelfatih/7b2b75724498abb1cf20dc155c97f5c5 to your computer and use it in GitHub Desktop.
<?php
$beyaz = ImageColorAllocate($image, 255, 255, 255);
$siyah = ImageColorAllocate($image, 0, 0, 0);
$cizgiRengi = ImageColorAllocate($image, rand(0, 255), rand(0, 255), rand(0, 255));
$cember1 = imagecolorallocatealpha($image, 0, 220, 100, 75);
$cember2 = imagecolorallocatealpha($image, 20, 200, 200, 75);
$cember3 = imagecolorallocatealpha($image, 250, 100, 250, 0);
imagefilledellipse($image, 17, 12, 21, 23, $cember1);
imagefilledellipse($image, 34, 12, 21, 23, $cember2);
imagefilledellipse($image, 53, 12, 20, 23, $cember3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment