Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / gradient-zero-stops.php
blob24664195e5d84608eaaff278bc5fc3a1959b9539
1 <?php
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 2, 2);
3 $con = new CairoContext($sur);
5 $pat = new CairoLinearGradient(0,0,1,1);
6 $con->setSource($pat);
7 $con->paint();
9 unset($pat);
11 $pat = new CairoRadialGradient(0,0,0,1,1,1);
12 $con->setSource($pat);
13 $con->paint();
15 $sur->writeToPng("gradient-zero-stops-php.png");