/**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }