sports_bench_hex2rgba($color, $opacity = false)

Type

Functions

Section

Display

Returns the rgba value for a color’s hexidecimal value.

Parameters

  • $color, string, required, hexidecimal value of the color
  • $opacity, boolean|float, optional, the opacity of the color between 0 and 1, or false for fully opaque

Returns

  • string, the rgba color value for a color

Since: 1.0

Source: display-functions.php, line 480