Lines Matching defs:red
43 * @param int|string $red either red channel or the whole color in hex
48 public function __construct($red, $green = null, $blue = null) {
49 if(!is_numeric($red)) {
51 list($red, $green, $blue) = $this->Hex2RGB($red);
53 if(is_null($green)) $green = $red;
54 if(is_null($blue)) $blue = $red;
56 if($red < 0 || $red > 255) {
68 $this->r = $red;
169 * Get the red channel