Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
24
artichow/examples/tutorials/base-Gradient-radial.php
Normal file
24
artichow/examples/tutorials/base-Gradient-radial.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
require_once "../../Graph.class.php";
|
||||
|
||||
$graph = new Graph(250, 250);
|
||||
|
||||
$graph->border->hide();
|
||||
|
||||
$driver = $graph->getDriver();
|
||||
|
||||
$start = new Color(125, 250, 0);
|
||||
$end = new Color(0, 125, 125);
|
||||
|
||||
// On dessine le dégradé radial dans un cercle
|
||||
$driver->filledEllipse(
|
||||
new RadialGradient(
|
||||
$start,
|
||||
$end
|
||||
),
|
||||
new Point(125, 125),
|
||||
250, 250
|
||||
);
|
||||
|
||||
$graph->draw();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue