MCPcopy Create free account
hub / github.com/codeaashu/claude-code / scale

Function scale

src/ink/termio/osc.ts:332–333  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

330 if (rgb) {
331 // XParseColor: N hex digits → value / (16^N - 1), scale to 0-255
332 const scale = (s: string) =>
333 Math.round((parseInt(s, 16) / (16 ** s.length - 1)) * 255)
334 return {
335 type: 'rgb',
336 r: scale(rgb[1]!),

Callers 1

parseOscColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected