Kaizen
Browse modulesQR codeqr-code/sharedFunctions

Function: isTranslucentColor()

function isTranslucentColor(color: string): boolean;

Defined in: shared/qr-code/contrast.ts:112

true when the colour resolves statically and is not fully opaque.

false covers both "opaque" and "couldn't tell" — callers wanting to reject see-through paint must treat unresolvable colours separately.

Parameters

ParameterType
colorstring

Returns

boolean

On this page