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

Function hex

src/utils/color.ts:399–408  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

397 }
398
399 const hex = (i: number) => {
400 const c = $hex.charCodeAt(i);
401 if (c >= C_A && c <= C_F) {
402 return c + 10 - C_A;
403 }
404 if (c >= C_a && c <= C_f) {
405 return c + 10 - C_a;
406 }
407 return c - C_0;
408 };
409
410 let r: number;
411 let g: number;

Callers 1

parseHexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected