Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / big-line.php
blob45c81443504b20a5b3c978d7517c4cd7a0aa5cb3
1 <?
2 $width = 100;
3 $height = 100;
4 $sur = new CairoPSSurface("temp.ps", $width, $height);
5 $con = new CairoContext($sur);
6 //$path = new CairoPath($con);
8 $con->setSourceRgb(0,0,1);
9 $con->moveTo(50,50);
10 $con->lineTo(50000,50000);
11 $con->stroke();
13 $con->setSourceRgb(0,1,0);
14 $con->moveTo(50,50);
15 $con->lineTo(-50000,50000);
16 $con->stroke();
18 $con->setSourceRgb(1,0,0);
19 $con->moveTo(50,50);
20 $con->lineTo(50000,-50000);
21 $con->stroke();
23 $con->setSourceRgb(1,1,0);
24 $con->moveTo(50,50);
25 $con->lineTo(-50000,-50000);
26 $con->stroke();
28 $sur->writeToPng("big-line-php.png");