MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / pct

Method pct

javascript/selenium-webdriver/lib/color.js:125–125  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

123 )
124 if (!m) return null
125 const pct = (i) => Math.floor((Math.min(100, Math.max(0, parseFloat(m[i]))) / 100) * 255)
126 return new Color(pct(1), pct(2), pct(3), 1)
127 }
128

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected