MCPcopy Create free account
hub / github.com/alignoth/alignoth / uf

Function uf

resources/vega.min.js:9146–9149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9144 return `#${ff(this.r)}${ff(this.g)}${ff(this.b)}`;
9145 }
9146 function uf() {
9147 const t = lf(this.opacity);
9148 return `${1 === t ? "rgb(" : "rgba("}${cf(this.r)}, ${cf(this.g)}, ${cf(this.b)}${1 === t ? ")" : `, ${t})`}`;
9149 }
9150 function lf(t) {
9151 return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
9152 }

Callers

nothing calls this directly

Calls 2

lfFunction · 0.70
cfFunction · 0.70

Tested by

no test coverage detected