Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cssinjs/jss
/ getRandomColor
Function
getRandomColor
examples/function-values/utils.js:4–4 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
import
Stats from
'stats.js'
3
4
export
const
getRandomColor = () => `#${Math.floor(Math.random() * 0x1000000).toString(16)}`
5
6
export
const
getRandomTransform = () => {
7
const
x = random(0, window.innerWidth)
Callers
3
render
Function · 0.90
reactJssRenderer.js
File · 0.90
reactInlineRenderer.js
File · 0.90
Calls
1
toString
Method · 0.65
Tested by
no test coverage detected