2 $sur = new CairoImageSurface(FORMAT_ARGB32
, 40, 40);
3 $con = new CairoContext($sur);
5 $con->setSourceRgb(1,1,1);
7 $con->setLineCap(LINE_CAP_ROUND
);
10 $con->setSourceRgb(0,1,0);
13 $theta = $n * 2 * M_PI
/ 8;
15 $con->arc(20, 20, 15, $theta, $theta);
21 $con->setLineWidth(2);
22 $con->setSourceRgb(0,0,1);
25 $theta = $n * 2 * M_PI
/ 8;
27 $con->arc(20,20,15, $theta, $theta);
32 $con->setSourceRgb(1,0,0);
33 $con->arc(20,20,2,0,2*M_PI
);
36 $sur->writeToPng("degenerate-arc-php.png");