Examples updated to the latest Camel Case .. Was a pain converting them
[phpCairo.git] / testcases / phpCairo / infinite-join.php
blob20cc166b9f2feddfbbd55aeee718e867e7e35b84
1 <?php
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 8, 8);
3 $con = new CairoContext($sur);
5 $con->setSourceRgb(1,1,1);
6 $con->paint();
8 $con->setSourceRgb(0,0,0);
9 $con->setLineJoin(LINE_JOIN_ROUND);
10 $con->scale(20.0/100.0, 20/100.);
11 $con->scale(1./20, 1./20);
12 $con->setLineWidth(20);
13 $con->translate ( -18300, -13200);
15 $con->newPath ();
16 $con->moveTo ( 18928, 13843);
17 $con->lineTo ( 18500, 13843);
18 $con->lineTo ( 18500, 13400);
19 $con->lineTo ( 18928, 13400);
20 $con->lineTo ( 18928, 13843);
21 $con->stroke ();
22 $sur->writeToPng("infinite-join-php.png");