Subversion Repositories Applications.gtt

Rev

Rev 60 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
require_once "../../Graph.class.php";

$graph = new Graph(400, 30);

$graph->border->hide();

$driver = $graph->getDriver();

for($i = 7; $i < 400; $i += 15) {
        $driver->line(
                new Color(0, 0, 0),
                new Line(
                        new Point($i, 0),
                        new Point($i, 30)
                )
        );
}

for($i = 7; $i < 30; $i += 15) {
        $driver->line(
                new Color(0, 0, 0),
                new Line(
                        new Point(0, $i),
                        new Point(400, $i)
                )
        );
}

$driver->filledRectangle(
        new Color(0, 100, 200, 50),
        new Line(
                new Point(0, 0),
                new Point(400, 30)
        )
);

$graph->draw();

?>