forked from halo-battle/game
Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
25
artichow/examples/tutorials/base-Gradient-linear.php
Normal file
25
artichow/examples/tutorials/base-Gradient-linear.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
require_once "../../Graph.class.php";
|
||||
|
||||
$graph = new Graph(400, 30);
|
||||
|
||||
$graph->border->hide();
|
||||
|
||||
$driver = $graph->getDriver();
|
||||
|
||||
$driver->filledRectangle(
|
||||
new LinearGradient(
|
||||
new Black,
|
||||
new White,
|
||||
0
|
||||
),
|
||||
new Line(
|
||||
new Point(0, 0),
|
||||
new Point(400, 30)
|
||||
)
|
||||
);
|
||||
|
||||
$graph->draw();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue