Skip to content

Function: hasTranslucency() ​

ts
function hasTranslucency(colors, fallbackAlpha): boolean;

Experimental

Whether any drawn color is translucent (alpha < 1).

Parameters ​

ParameterType
colorsFloat32Array<ArrayBufferLike> | null
fallbackAlphanumber

Returns ​

boolean

Released under the MIT License.