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
require_once "../../Graph.class.php";
3
 
4
$graph = new Graph(250, 250);
5
 
6
$graph->border->hide();
7
 
8
$driver = $graph->getDriver();
9
 
10
$start = new Color(125, 250, 0);
11
$end = new Color(0, 125, 125);
12
 
13
// On dessine le dégradé radial dans un cercle
14
$driver->filledEllipse(
15
	new RadialGradient(
16
		$start,
17
		$end
18
	),
19
	new Point(125, 125),
20
	250, 250
21
);
22
 
23
$graph->draw();
24
?>