MCPcopy Index your code
hub / github.com/darkreader/darkreader / clearColorCache

Function clearColorCache

src/utils/color.ts:53–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53export function clearColorCache(): void {
54 hslaParseCache.clear();
55 rgbaParseCache.clear();
56}
57
58// https://en.wikipedia.org/wiki/HSL_and_HSV
59export function hslToRGB({h, s, l, a = 1}: HSLA): RGBA {

Callers 1

cleanDynamicThemeCacheFunction · 0.90

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected