renderSolidColorBackground

Render a solid-color video background to a canvas.
Source:
Parameters:
Name Type Description
bodyPix * The BodyPix SDK.
canvasElement * A reference to the target canvas element.
color Array.<Number> An array of RGBA color values.
net * The net loaded from BodyPix.
videoElement * A reference to the source video element.