Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / FaceCameraFrame

Type Alias: FaceCameraFrame ​

ts
type FaceCameraFrame = {
  element: HTMLVideoElement | HTMLCanvasElement;
  mirrored: boolean;
};

Defined in: face/surface.ts:29

What the camera shows. The AR canvas is transparent over the video, so nothing drawn on it can darken the picture under it: a blend that has to read the camera reads this instead.

Properties ​

PropertyTypeDescriptionDefined in
elementHTMLVideoElement | HTMLCanvasElement-face/surface.ts:30
mirroredbooleanThe video is flipped on screen and the canvas isn't.face/surface.ts:32