/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
- <?hh <<__EntryPoint>> function main(): void {
- $im = imagecreate(100,100);
- $white = imagecolorallocate($im, 255,255,255);
- $blue = imagecolorallocate($im, 0,0,255);
- $green = imagecolorallocate($im, 0,255,0);
- print_r(imagecolorat($im, 0,0));
- imagefill($im, 0,0,$white + 3);
- print_r(imagecolorat($im, 0,0));
- imagedestroy($im);
- }