The lookup to get random styles from
The lookup to get random styles from
Protected
assignedThe internal lookup that is used in order to memoize the color that has been assigned once.
Protected
colorsThe lookup to get random styles from
Protected
lastMemoizes the last index of color taken from the colors list.
Protected
propertyThe property of LogMessages to generate random styles for
Generates a random color generator function for this factory instance. Multiple of these function may be used for one factory sharing the same lookup for already generated styles.
function that takes a LogMessage and generates a style for it. Depending on the selected RandomizedStylableLogMessageProperties, the style will be memoized and reused if the function is called multiple times with similar messages.
This factory handles the generation of random styles for a console interface. It returns a style generator function that accesses the list of styles to choose from of this factory instance.