MCPcopy Create free account
hub / github.com/adobe/leonardo / polynomial

Method polynomial

docs/ui/src/js/initialSequentialScale.js:257–259  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

255 // Inverse of actual function in order to present dots in proper location.
256 // See Leo.createScale for distribute lightness formula (square root of the one below)
257 const polynomial = (x) => {
258 return Math.sqrt((Math.pow(x, 2.25) + Math.pow(x, 4)) / 2);
259 };
260
261 const percDomains = percLums.map((d) => {
262 return sqrtDomains(d);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected