MCPcopy Create free account
hub / github.com/microsoft/SandDance / Hsl

Function Hsl

docs/app/js/sanddance-app.js:2474–2479  ·  view source on GitHub ↗
(h, s, l, opacity)

Source from the content-addressed store, hash-verified

2472 return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
2473}
2474function Hsl(h, s, l, opacity) {
2475 this.h = +h;
2476 this.s = +s;
2477 this.l = +l;
2478 this.opacity = +opacity;
2479}
2480(0, _defineJsDefault.default)(Hsl, hsl, (0, _defineJs.extend)(Color, {
2481 brighter: function(k) {
2482 k = k == null ? brighter : Math.pow(brighter, k);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected