MCPcopy Create free account
hub / github.com/devforth/painterro / HexToRGBA

Function HexToRGBA

js/colorPicker.js:23–26  ·  view source on GitHub ↗
(hex, alpha)

Source from the content-addressed store, hash-verified

21}
22
23export function HexToRGBA(hex, alpha) {
24 const rgb = HexToRGB(hex);
25 return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
26}
27
28function format2Hex(val) {
29 const hex = val.toString(16);

Callers 3

setDefaultsFunction · 0.90
handleMouseMoveMethod · 0.85
setActiveColorMethod · 0.85

Calls 1

HexToRGBFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…