@@ 1112-1118 (lines=7) @@ | ||
1109 | return array($color, $delta); |
|
1110 | } |
|
1111 | ||
1112 | protected function lib_darken($args) { |
|
1113 | list($color, $delta) = $this->colorArgs($args); |
|
1114 | ||
1115 | $hsl = $this->toHSL($color); |
|
1116 | $hsl[3] = $this->clamp($hsl[3] - $delta, 100); |
|
1117 | return $this->toRGB($hsl); |
|
1118 | } |
|
1119 | ||
1120 | protected function lib_lighten($args) { |
|
1121 | list($color, $delta) = $this->colorArgs($args); |
|
@@ 1120-1126 (lines=7) @@ | ||
1117 | return $this->toRGB($hsl); |
|
1118 | } |
|
1119 | ||
1120 | protected function lib_lighten($args) { |
|
1121 | list($color, $delta) = $this->colorArgs($args); |
|
1122 | ||
1123 | $hsl = $this->toHSL($color); |
|
1124 | $hsl[3] = $this->clamp($hsl[3] + $delta, 100); |
|
1125 | return $this->toRGB($hsl); |
|
1126 | } |
|
1127 | ||
1128 | protected function lib_saturate($args) { |
|
1129 | list($color, $delta) = $this->colorArgs($args); |
|
@@ 1128-1134 (lines=7) @@ | ||
1125 | return $this->toRGB($hsl); |
|
1126 | } |
|
1127 | ||
1128 | protected function lib_saturate($args) { |
|
1129 | list($color, $delta) = $this->colorArgs($args); |
|
1130 | ||
1131 | $hsl = $this->toHSL($color); |
|
1132 | $hsl[2] = $this->clamp($hsl[2] + $delta, 100); |
|
1133 | return $this->toRGB($hsl); |
|
1134 | } |
|
1135 | ||
1136 | protected function lib_desaturate($args) { |
|
1137 | list($color, $delta) = $this->colorArgs($args); |
|
@@ 1136-1142 (lines=7) @@ | ||
1133 | return $this->toRGB($hsl); |
|
1134 | } |
|
1135 | ||
1136 | protected function lib_desaturate($args) { |
|
1137 | list($color, $delta) = $this->colorArgs($args); |
|
1138 | ||
1139 | $hsl = $this->toHSL($color); |
|
1140 | $hsl[2] = $this->clamp($hsl[2] - $delta, 100); |
|
1141 | return $this->toRGB($hsl); |
|
1142 | } |
|
1143 | ||
1144 | protected function lib_spin($args) { |
|
1145 | list($color, $delta) = $this->colorArgs($args); |