Added some test cases ....
[phpCairo.git] / testcases / phpCairo / fill-degenerate-sort-order.php
blob8b96e7c5cf42db4e9b0917492a70cb44bab8694c
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 190, 120);
3 $con = new CairoContext($sur);
5 $con->set_source_rgb(1,0,0);
6 $con->move_to(43,103);
7 $con->line_to(91,101);
8 $con->line_to(0,112);
9 $con->line_to(60,0);
10 $con->line_to(91,101);
11 $con->line_to(43,103);
12 $con->line_to(176,110);
13 $con->line_to(116,100);
14 $con->line_to(176,0);
15 $con->line_to(176,110);
16 $con->close_path();
17 $con->fill();
18 $sur->write_to_png("fill-degenerate-sort-order-php.png");