convertColours()
Overview
public array function convertColours(
required array colours
, required string colourFormat
)
Converts an array of colour values to the specified colour format.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| colours | array | Yes | Array of colour values - hex, RGB, or a mix of the two. |
| colourFormat | string | Yes | Format to convert the colours to. Supported formats are hex and rgb. |