Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to generate random color hexcodes for javascript

var randomColor = "#000000".replace(/0/g,function(){return (~~(Math.random()*16)).toString(16);});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #random #color #hexcodes #javascript
ADD COMMENT
Topic
Name
4+1 =