PageRenderTime 49ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  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. }