MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / #fromHsl

Method #fromHsl

javascript/selenium-webdriver/lib/color.js:154–157  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

152 }
153
154 static #fromHsl(v) {
155 const m = /^\s*hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)\s*$/i.exec(v)
156 return m ? Color.#hslToColor(+m[1], +m[2] / 100, +m[3] / 100, 1) : null
157 }
158
159 static #fromHsla(v) {
160 const m = /^\s*hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*(0|1|0\.\d+)\s*\)\s*$/i.exec(v)

Callers

nothing calls this directly

Calls 1

#hslToColorMethod · 0.80

Tested by

no test coverage detected