PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms 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
 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
 7print_r(imagecolorat($im, 0,0));
 8imagefill($im, 0,0,$white + 3);
 9print_r(imagecolorat($im, 0,0));
10imagedestroy($im);
11}