예제 #1
0
파일: HslColor.php 프로젝트: talesoft/phim
 public function __construct($hue, $saturation, $lightness)
 {
     parent::__construct($hue, $saturation);
     $this->lightness = MathUtil::capValue($lightness, 0.0, 1.0);
 }
예제 #2
0
파일: HsvColor.php 프로젝트: talesoft/phim
 public function __construct($hue, $saturation, $value)
 {
     parent::__construct($hue, $saturation);
     $this->value = MathUtil::capValue($value, 0.0, 1.0);
 }