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

NameTypeRequiredDescription
colourstringYesThe colour value to be tested