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