Usage
$colorToRGB[;] Also callable as
$colorToRGBA Arguments
| Name | Type | Required | Description |
|---|---|---|---|
color | String | Yes | The color string to convert. |
alpha | Boolean | No | Whether to return as RGBA |
Output
StringConverts a color code from any supported format (hex, rgb, hsl, etc.) to a rgb/rgba format.
$colorToRGB[;] $colorToRGBA | Name | Type | Required | Description |
|---|---|---|---|
color | String | Yes | The color string to convert. |
alpha | Boolean | No | Whether to return as RGBA |
StringWas this page helpful?