MCPcopy Index your code
hub / github.com/simstudioai/sim / applyAlpha

Function applyAlpha

apps/sim/lib/pptx-renderer/utils/color.ts:144–146  ·  view source on GitHub ↗
(alpha: number)

Source from the content-addressed store, hash-verified

142 * 100000 = fully opaque, 0 = fully transparent.
143 */
144export function applyAlpha(alpha: number): number {
145 return Math.max(0, Math.min(1, alpha / 100000))
146}
147
148// ---------------------------------------------------------------------------
149// Composite Modifier Application

Callers 1

applyColorModifiersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected