|
@@ 1003-1005 (lines=3) @@
|
| 1000 |
|
*/ |
| 1001 |
|
protected function colorArgs($args) |
| 1002 |
|
{ |
| 1003 |
|
if ($args[0] != 'list' || count($args[2]) < 2) { |
| 1004 |
|
return [['color', 0, 0, 0], 0]; |
| 1005 |
|
} |
| 1006 |
|
list($color, $delta) = $args[2]; |
| 1007 |
|
$color = $this->assertColor($color); |
| 1008 |
|
$delta = floatval($delta[1]); |
|
@@ 1168-1170 (lines=3) @@
|
| 1165 |
|
|
| 1166 |
|
protected function lib_contrast($args) |
| 1167 |
|
{ |
| 1168 |
|
if ($args[0] != 'list' || count($args[2]) < 3) { |
| 1169 |
|
return [['color', 0, 0, 0], 0]; |
| 1170 |
|
} |
| 1171 |
|
|
| 1172 |
|
list($inputColor, $darkColor, $lightColor) = $args[2]; |
| 1173 |
|
|