Source for file Gradient.class.php
Documentation is available at Gradient.class.php
* This work is hereby released into the Public Domain.
* To view a copy of the public domain dedication,
* visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
* Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
require_once dirname(__FILE__ ). "/../Graph.class.php";
* @package linea21.externals
* @param $from From color
function awGradient($from, $to) {
* Create a linear gradient
* @package linea21.externals
* Build the linear gradient
* @param $from From color
* @param int $angle Gradient angle
function awLinearGradient($from, $to, $angle) {
$this->angle = (int) $angle;
* Create a bilinear gradient
* @package linea21.externals
* @var float Center between 0 and 1
* Build the bilinear gradient
* @param $from From color
* @param int $angle Gradient angle
* @param int $center Gradient center
function awBilinearGradient($from, $to, $angle, $center = 0.5) {
parent::awLinearGradient(
$this->center = (float) $center;
* Create a radial gradient
* @package linea21.externals
|