4 $sur = new CairoPSSurface("temp.ps", $width, $height);
5 $con = new CairoContext($sur);
6 //$path = new CairoPath($con);
8 $con->setSourceRgb(0,0,1);
10 $con->lineTo(50000,50000);
13 $con->setSourceRgb(0,1,0);
15 $con->lineTo(-50000,50000);
18 $con->setSourceRgb(1,0,0);
20 $con->lineTo(50000,-50000);
23 $con->setSourceRgb(1,1,0);
25 $con->lineTo(-50000,-50000);
28 $sur->writeToPng("big-line-php.png");