MCPcopy
hub / github.com/microsoft/SandDance / rgb_formatHex

Function rgb_formatHex

docs/app/js/sanddance-app.js:2437–2439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2435 toString: rgb_formatRgb
2436}));
2437function rgb_formatHex() {
2438 return "#" + hex(this.r) + hex(this.g) + hex(this.b);
2439}
2440function rgb_formatRgb() {
2441 var a = this.opacity;
2442 a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));

Callers

nothing calls this directly

Calls 1

hexFunction · 0.70

Tested by

no test coverage detected