Example #1
0
 /**
  * Class constructor
  * 
  * @param   int     The alpha value defining opacity (0-255)
  * @param   int     The red color value (0-255)
  * @param   int     The green color value (0-255)
  * @param   int     The blue color value (0-255)
  * @return  void
  */
 public function __construct($alpha = 0, $red = 0, $green = 0, $blue = 0)
 {
     // Calls the parent constructor
     parent::_construct();
     // Stores the alpha values
     $this->_alpha = self::$_number->inRange($alpha, 0, 255);
 }