@@ 1013-1021 (lines=9) @@ | ||
1010 | return [$color, $delta]; |
|
1011 | } |
|
1012 | ||
1013 | protected function lib_darken($args) |
|
1014 | { |
|
1015 | list($color, $delta) = $this->colorArgs($args); |
|
1016 | ||
1017 | $hsl = $this->toHSL($color); |
|
1018 | $hsl[3] = $this->clamp($hsl[3] - $delta, 100); |
|
1019 | ||
1020 | return $this->toRGB($hsl); |
|
1021 | } |
|
1022 | ||
1023 | protected function lib_lighten($args) |
|
1024 | { |
|
@@ 1023-1031 (lines=9) @@ | ||
1020 | return $this->toRGB($hsl); |
|
1021 | } |
|
1022 | ||
1023 | protected function lib_lighten($args) |
|
1024 | { |
|
1025 | list($color, $delta) = $this->colorArgs($args); |
|
1026 | ||
1027 | $hsl = $this->toHSL($color); |
|
1028 | $hsl[3] = $this->clamp($hsl[3] + $delta, 100); |
|
1029 | ||
1030 | return $this->toRGB($hsl); |
|
1031 | } |
|
1032 | ||
1033 | protected function lib_saturate($args) |
|
1034 | { |
|
@@ 1033-1041 (lines=9) @@ | ||
1030 | return $this->toRGB($hsl); |
|
1031 | } |
|
1032 | ||
1033 | protected function lib_saturate($args) |
|
1034 | { |
|
1035 | list($color, $delta) = $this->colorArgs($args); |
|
1036 | ||
1037 | $hsl = $this->toHSL($color); |
|
1038 | $hsl[2] = $this->clamp($hsl[2] + $delta, 100); |
|
1039 | ||
1040 | return $this->toRGB($hsl); |
|
1041 | } |
|
1042 | ||
1043 | protected function lib_desaturate($args) |
|
1044 | { |
|
@@ 1043-1051 (lines=9) @@ | ||
1040 | return $this->toRGB($hsl); |
|
1041 | } |
|
1042 | ||
1043 | protected function lib_desaturate($args) |
|
1044 | { |
|
1045 | list($color, $delta) = $this->colorArgs($args); |
|
1046 | ||
1047 | $hsl = $this->toHSL($color); |
|
1048 | $hsl[2] = $this->clamp($hsl[2] - $delta, 100); |
|
1049 | ||
1050 | return $this->toRGB($hsl); |
|
1051 | } |
|
1052 | ||
1053 | protected function lib_spin($args) |
|
1054 | { |