Example #1
0
 public function __construct($hue, $saturation, $lightness)
 {
     parent::__construct($hue, $saturation);
     $this->lightness = MathUtil::capValue($lightness, 0.0, 1.0);
 }
Example #2
0
 public function __construct($hue, $saturation, $value)
 {
     parent::__construct($hue, $saturation);
     $this->value = MathUtil::capValue($value, 0.0, 1.0);
 }