Generates a random hexadecimal color string with a specified minimum brightness.
A random color string in #RRGGBB format.
#RRGGBB
createRandomColor(100); // → '#c48f7a' (example output)createRandomColor(200); // → '#e5f0ff' (example output)
brightness
Minimum value for each RGB channel (0–255). Higher values produce lighter colors.
Generated using TypeDoc
Generates a random hexadecimal color string with a specified minimum brightness.
Returns
A random color string in
#RRGGBBformat.Example
Remarks
brightnessand 255.