Subversion Repositories Applications.gtt

Rev

Rev 61 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
60 jpm 1
<?php
2
 
3
require_once "../../Graph.class.php";
4
 
5
$graph = new Graph(400, 600);
6
 
7
$driver = $graph->getDriver();
8
 
9
$driver->filledRectangle(
10
	new Red,
11
	new Line(
12
		new Point(200, 0),
13
		new Point(200, 600)
14
	)
15
);
16
 
17
$text = new Text(
18
	"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean gravida quam semper nibh. Sed orci. Aenean ullamcorper magna eget odio. Sed nonummy ante sit amet sapien.\nPhasellus nulla dui, aliquet vel, adipiscing vel, vulputate sed, velit.\nSed at neque vel ipsum commodo hendrerit.\nA. Nonyme",
19
	new Tuffy(mt_rand(10, 15)),
20
	new Color(mt_rand(0, 100), mt_rand(0, 100), mt_rand(0, 100)),
21
 
22
);
23
 
24
$driver->string($text, new Point(0, 0), 200);
25
 
26
$text = new Text(
27
	"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean gravida quam semper nibh. Sed orci. Aenean ullamcorper magna eget odio. Sed nonummy ante sit amet sapien.\nPhasellus nulla dui, aliquet vel, adipiscing vel, vulputate sed, velit.\nSed at neque vel ipsum commodo hendrerit.\nA. Nonyme",
28
	new Font(mt_rand(2, 4)),
29
	new Color(mt_rand(0, 100), mt_rand(0, 100), mt_rand(0, 100)),
30
 
31
);
32
 
33
$driver->string($text, new Point(0, 400), 200);
34
 
35
$graph->draw();
36
 
37
?>