DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+9 =
Submit