Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / fill-degenerate-sort-order.php
blob0af786c89b920009b0c2e979ff5f854b907d9e89
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 190, 120);
3 $con = new CairoContext($sur);
5 $con->setSourceRgb(1,0,0);
6 $con->moveTo(43,103);
7 $con->lineTo(91,101);
8 $con->lineTo(0,112);
9 $con->lineTo(60,0);
10 $con->lineTo(91,101);
11 $con->lineTo(43,103);
12 $con->lineTo(176,110);
13 $con->lineTo(116,100);
14 $con->lineTo(176,0);
15 $con->lineTo(176,110);
16 $con->closePath();
17 $con->fill();
18 $sur->writeToPng("fill-degenerate-sort-order-php.png");