Skip to content

Function: compositeStraightRGBABuffer() ​

ts
function compositeStraightRGBABuffer(
   destination, 
   source, 
   blendMode, 
   opacity
): void;

Defined in: utils/rgbaCompositing.ts:121

Composite a full straight-alpha RGBA buffer into destination in place. This is the allocation-free CPU production path used by brain surfaces.

Parameters ​

destination ​

Float32Array

source ​

ArrayLike<number>

blendMode ​

BlendMode

opacity ​

number

Returns ​

void

Released under the MIT License.