MCPcopy 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

2import Stats from 'stats.js'
3
4export const getRandomColor = () => `#${Math.floor(Math.random() * 0x1000000).toString(16)}`
5
6export const getRandomTransform = () => {
7 const x = random(0, window.innerWidth)

Callers 3

renderFunction · 0.90

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected