|
@@ 420-428 (lines=9) @@
|
| 417 |
|
} |
| 418 |
|
|
| 419 |
|
|
| 420 |
|
public function darken($args) |
| 421 |
|
{ |
| 422 |
|
list($color, $delta) = $this->compiler->colorArgs($args); |
| 423 |
|
|
| 424 |
|
$hsl = $this->converter->toHSL($color); |
| 425 |
|
$hsl[3] = $this->converter->clamp($hsl[3] - $delta, 100); |
| 426 |
|
|
| 427 |
|
return $this->converter->toRGB($hsl); |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
public function lighten($args) |
| 431 |
|
{ |
|
@@ 430-438 (lines=9) @@
|
| 427 |
|
return $this->converter->toRGB($hsl); |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
public function lighten($args) |
| 431 |
|
{ |
| 432 |
|
list($color, $delta) = $this->compiler->colorArgs($args); |
| 433 |
|
|
| 434 |
|
$hsl = $this->converter->toHSL($color); |
| 435 |
|
$hsl[3] = $this->converter->clamp($hsl[3] + $delta, 100); |
| 436 |
|
|
| 437 |
|
return $this->converter->toRGB($hsl); |
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
public function saturate($args) |
| 441 |
|
{ |
|
@@ 440-448 (lines=9) @@
|
| 437 |
|
return $this->converter->toRGB($hsl); |
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
public function saturate($args) |
| 441 |
|
{ |
| 442 |
|
list($color, $delta) = $this->compiler->colorArgs($args); |
| 443 |
|
|
| 444 |
|
$hsl = $this->converter->toHSL($color); |
| 445 |
|
$hsl[2] = $this->converter->clamp($hsl[2] + $delta, 100); |
| 446 |
|
|
| 447 |
|
return $this->converter->toRGB($hsl); |
| 448 |
|
} |
| 449 |
|
|
| 450 |
|
public function desaturate($args) |
| 451 |
|
{ |
|
@@ 450-458 (lines=9) @@
|
| 447 |
|
return $this->converter->toRGB($hsl); |
| 448 |
|
} |
| 449 |
|
|
| 450 |
|
public function desaturate($args) |
| 451 |
|
{ |
| 452 |
|
list($color, $delta) = $this->compiler->colorArgs($args); |
| 453 |
|
|
| 454 |
|
$hsl = $this->converter->toHSL($color); |
| 455 |
|
$hsl[2] = $this->converter->clamp($hsl[2] - $delta, 100); |
| 456 |
|
|
| 457 |
|
return $this->converter->toRGB($hsl); |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
public function spin($args) |
| 461 |
|
{ |