Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to generate color code from random number

var randomColor = '#'+Math.floor(Math.random()*16777215).toString(16);
//generates a random color -> #56eec7
 
PREVIOUS NEXT
Tagged: #generate #color #code #random #number
ADD COMMENT
Topic
Name
6+8 =