Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / clip-push-group.php
blob3fcb48876ceceab3a49feac2bcb818614f1f0f80
1 <?
2 $size = 10;
3 $pad = 2;
5 $sur = new CairoImageSurface(FORMAT_ARGB32, $size, $size);
6 $con = new CairoContext($sur);
8 $con->setSourceRgb(1,0,0);
9 $con->paint();
11 $con->arc($size/2, $size/2, $size/2 - $pad, 0, 2*M_PI);
12 $con->clip();
13 $con->pushGroup();
14 $con->setSourceRgb(0,0,1);
15 $con->paint();
16 $con->popGroupToSource();
17 $con->paint();
19 $sur->writeToPng("clip-push-group-php.png");