/** * 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; }