Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get random dark color

    getRadomDarkColor : () => {
        var letters = '0123456789ABCDEF';
        var color = '#';
        for (var i = 0; i < 6; i++) {
            color += letters[Math.floor(Math.random() * 6) + 10];
        }
        return color;
    },
 
PREVIOUS NEXT
Tagged: #random #dark #color
ADD COMMENT
Topic
Name
8+7 =