MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fillBackground

Function fillBackground

src/utils/ansiToPng.ts:162–169  ·  view source on GitHub ↗
(px: Uint8Array, bg: AnsiColor)

Source from the content-addressed store, hash-verified

160}
161
162function fillBackground(px: Uint8Array, bg: AnsiColor): void {
163 for (let i = 0; i < px.length; i += 4) {
164 px[i] = bg.r
165 px[i + 1] = bg.g
166 px[i + 2] = bg.b
167 px[i + 3] = 255
168 }
169}
170
171// Modern terminals render shade chars (░▒▓█) as solid blocks with opacity,
172// not the classic VGA dither pattern. Alpha-blend toward background for the

Callers 1

ansiToPngFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected