/hphp/test/zend/good/ext/gd/tests/imagefill_1.php

http://github.com/facebook/hiphop-php · PHP · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · 8a0ec3750190142a5b1d2ba990439b7a MD5 · raw file

  1. <?hh <<__EntryPoint>> function main(): void {
  2. $im = imagecreate(100,100);
  3. $white = imagecolorallocate($im, 255,255,255);
  4. $blue = imagecolorallocate($im, 0,0,255);
  5. $green = imagecolorallocate($im, 0,255,0);
  6. print_r(imagecolorat($im, 0,0));
  7. imagefill($im, 0,0,$white + 3);
  8. print_r(imagecolorat($im, 0,0));
  9. imagedestroy($im);
  10. }