* @package Mammut\Image */ class Color extends \Mammut\StrictObject { private $r; private $g; private $b; private $a; public function __construct($r, $g, $b, $a = 255) { $this->r = $r; $this->g = $g; $this->b = $b; $this->a = $a; } public function getRed() { return $this->r; } public function setRed($r) { $this->r = $r; } public function getGreen() { return $this->g; } public function setGreen($g) { $this->g = $g; } public function getBlue() { return $this->b; } public function setBlue($b) { $this->b = $b; } public function getAlpha() { return $this->a; } public function setAlpha($a) { $this->a = $a; } } ?>