MCPcopy
hub / github.com/midrender/revideo / getSelectionAlpha

Method getSelectionAlpha

packages/2d/src/lib/components/CodeBlock.ts:350–351  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

348 const globalAlpha = context.globalAlpha;
349
350 const getSelectionAlpha = (x: number, y: number) =>
351 map(unselectedOpacity, 1, this.selectionStrength(x, y));
352
353 const drawToken = (
354 code: string,

Callers

nothing calls this directly

Calls 2

selectionStrengthMethod · 0.95
mapFunction · 0.90

Tested by

no test coverage detected