detectColourFormat()
Overview
public string function detectColourFormat(
required string colour
)
Detects the colour format (RGB or hex) of a given colour value.
Throws SimpleColourPicker.invalidColour
error if the format cannot be detected.
Arguments
Name | Type | Required | Description |
---|---|---|---|
colour | string | Yes | The colour value to be tested |