|
@@ 1079-1085 (lines=7) @@
|
| 1076 |
|
return array($color, $delta); |
| 1077 |
|
} |
| 1078 |
|
|
| 1079 |
|
protected function lib_darken($args) { |
| 1080 |
|
list($color, $delta) = $this->colorArgs($args); |
| 1081 |
|
|
| 1082 |
|
$hsl = $this->toHSL($color); |
| 1083 |
|
$hsl[3] = $this->clamp($hsl[3] - $delta, 100); |
| 1084 |
|
return $this->toRGB($hsl); |
| 1085 |
|
} |
| 1086 |
|
|
| 1087 |
|
protected function lib_lighten($args) { |
| 1088 |
|
list($color, $delta) = $this->colorArgs($args); |
|
@@ 1087-1093 (lines=7) @@
|
| 1084 |
|
return $this->toRGB($hsl); |
| 1085 |
|
} |
| 1086 |
|
|
| 1087 |
|
protected function lib_lighten($args) { |
| 1088 |
|
list($color, $delta) = $this->colorArgs($args); |
| 1089 |
|
|
| 1090 |
|
$hsl = $this->toHSL($color); |
| 1091 |
|
$hsl[3] = $this->clamp($hsl[3] + $delta, 100); |
| 1092 |
|
return $this->toRGB($hsl); |
| 1093 |
|
} |
| 1094 |
|
|
| 1095 |
|
protected function lib_saturate($args) { |
| 1096 |
|
list($color, $delta) = $this->colorArgs($args); |
|
@@ 1095-1101 (lines=7) @@
|
| 1092 |
|
return $this->toRGB($hsl); |
| 1093 |
|
} |
| 1094 |
|
|
| 1095 |
|
protected function lib_saturate($args) { |
| 1096 |
|
list($color, $delta) = $this->colorArgs($args); |
| 1097 |
|
|
| 1098 |
|
$hsl = $this->toHSL($color); |
| 1099 |
|
$hsl[2] = $this->clamp($hsl[2] + $delta, 100); |
| 1100 |
|
return $this->toRGB($hsl); |
| 1101 |
|
} |
| 1102 |
|
|
| 1103 |
|
protected function lib_desaturate($args) { |
| 1104 |
|
list($color, $delta) = $this->colorArgs($args); |
|
@@ 1103-1109 (lines=7) @@
|
| 1100 |
|
return $this->toRGB($hsl); |
| 1101 |
|
} |
| 1102 |
|
|
| 1103 |
|
protected function lib_desaturate($args) { |
| 1104 |
|
list($color, $delta) = $this->colorArgs($args); |
| 1105 |
|
|
| 1106 |
|
$hsl = $this->toHSL($color); |
| 1107 |
|
$hsl[2] = $this->clamp($hsl[2] - $delta, 100); |
| 1108 |
|
return $this->toRGB($hsl); |
| 1109 |
|
} |
| 1110 |
|
|
| 1111 |
|
protected function lib_spin($args) { |
| 1112 |
|
list($color, $delta) = $this->colorArgs($args); |