/** * Build the bilinear gradient * * @param awColor $from From color * @param awColor $to To color * @param int $angle Gradient angle * @param int $center Gradient center */ public function __construct($from, $to, $angle, $center = 0.5) { parent::__construct($from, $to, $angle); $this->center = (double) $center; }
/** * Build the bilinear gradient * * @param $from From color * @param $to To color * @param int $angle Gradient angle * @param int $center Gradient center */ function awBilinearGradient($from, $to, $angle, $center = 0.5) { parent::awLinearGradient($from, $to, $angle); $this->center = (double) $center; }