is_dark_color()
public static function is_dark_color( $color='', $threshold=465 )
Detect if a color is dark against a passed threshold. Default is set at 465 in the range of 1 - 765.
Since: 2.7
Source: common.php:8090
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$color | string | '' | The color string to test, as a hex code (either 3 or 6 digits). |
$threshold | float | 465 | The threshold to return true at in a range of 1 - 765. |
Returns
bool