DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript random color
var r = () => Math.random() * 256 >> 0; var color = `rgb(${r()}, ${r()}, ${r()})`;
Source by www.paulirish.com #
PREVIOUS
NEXT
Tagged:
#javascript
#random
#color
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit