Returns the brightness of a color.
public static brightness ( string $color ) : integer | ||
$color | string | An HTML color, e.g.: #ffffcc. |
return | integer | The brightness on a scale of 0 to 255. |
public static brightness ( string $color ) : integer | ||
$color | string | An HTML color, e.g.: #ffffcc. |
return | integer | The brightness on a scale of 0 to 255. |