/hphp/test/zend/good/ext/gd/tests/imagefill_1.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
- <?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);
- }