MCPcopy
hub / github.com/omgovich/colord / toHsl

Method toHsl

src/colord.ts:88–90  ·  view source on GitHub ↗

* Converts a color to HSL color space and returns an object. * Always includes an alpha value from 0 to 1.

()

Source from the content-addressed store, hash-verified

86 * Always includes an alpha value from 0 to 1.
87 */
88 public toHsl(): HslaColor {
89 return roundHsla(rgbaToHsla(this.rgba));
90 }
91
92 /**
93 * Converts a color to HSL color space and returns a string representation.

Callers 3

minifyPluginFunction · 0.80
benchmark.tsFile · 0.80
colord.test.tsFile · 0.80

Calls 2

roundHslaFunction · 0.90
rgbaToHslaFunction · 0.90

Tested by

no test coverage detected