getRgbColourPair()
getRgbColourPair(boolean $toArray = true) : array|string
Generate a random Red-Green-Blue (RGB) colour combination using all colours.
Parameters
boolean | $toArray | Flag to force array output instead of string (default => true). |
Throws
- \Exception
Validation errors.
Returns
array|string —Randomly generated RGB array or hexadecimal RGB color.