\CryptoManana\Core\Interfaces\RandomnessRgbOutputInterface

Interface RgbOutputInterface - Interface for random RGB colour generation.

Summary

Methods
Constants
getRgbColourPair()
getRgbGreyscalePair()
getRgbBlackOrWhitePair()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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).

Returns

array|string —

Randomly generated RGB array or hexadecimal RGB color.

getRgbGreyscalePair()

getRgbGreyscalePair(boolean  $toArray = true) : array|string

Generate a random Red-Green-Blue (RGB) colour combination using only greyscale colours.

Parameters

boolean $toArray

Flag to force array output instead of string (default => true).

Returns

array|string —

Randomly generated RGB array or hexadecimal RGB color.

getRgbBlackOrWhitePair()

getRgbBlackOrWhitePair(boolean  $toArray = true) : array|string

Generate a random Red-Green-Blue (RGB) colour combination using only black&white colours.

Parameters

boolean $toArray

Flag to force array output instead of string (default => true).

Returns

array|string —

Randomly generated RGB array or hexadecimal RGB color.