convertColours()

Overview

public array function convertColours(
      required array  colours     
    , required string colourFormat
)

Converts an array of colour values to the specified colour format.

Arguments

NameTypeRequiredDescription
coloursarrayYesArray of colour values - hex, RGB, or a mix of the two.
colourFormatstringYesFormat to convert the colours to. Supported formats are hex and rgb.