2 $sur = new CairoImageSurface(FORMAT_ARGB32
, 2, 2);
3 $con = new CairoContext($sur);
5 $pat = new CairoLinearGradient(0,0,1,1);
11 $pat = new CairoRadialGradient(0,0,0,1,1,1);
12 $con->setSource($pat);
15 $sur->writeToPng("gradient-zero-stops-php.png");