MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / hex

Method hex

src/utils/color/hex.js:47–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 if (a.length === 1) a = `0${a}`;
46
47 const hex = () => `#${r}${g}${b}`.toUpperCase();
48 const hexA = () => `#${r}${g}${b}${a}`.toUpperCase();
49
50 if (alpha === undefined) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected