MCPcopy Create free account
hub / github.com/breck7/scroll / formatHsl

Function formatHsl

external/.d3.js:3275–3278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3273 && (0 <= this.opacity && this.opacity <= 1);
3274 },
3275 formatHsl() {
3276 const a = clampa(this.opacity);
3277 return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
3278 }
3279}));
3280
3281function clamph(value) {

Callers

nothing calls this directly

Calls 3

clampaFunction · 0.85
clamphFunction · 0.85
clamptFunction · 0.85

Tested by

no test coverage detected