MCPcopy Index your code
hub / github.com/gre/gl-react / capture

Method capture

packages/gl-react/src/createSurface.tsx:45–45  ·  view source on GitHub ↗
(x?: number, y?: number, w?: number, h?: number)

Source from the content-addressed store, hash-verified

43 captureAsDataURL(...args: any[]): string;
44 captureAsBlob(...args: any[]): Promise<Blob>;
45 capture(x?: number, y?: number, w?: number, h?: number): NDArray;
46 redraw(): void;
47 flush(): void;
48 getEmptyTexture(): WebGLTexture;

Callers 8

PreviewNodeFunction · 0.65
DemoDesertCRTFunction · 0.65
all.jsFile · 0.65
StatefulJustBlueClass · 0.65
renderFunction · 0.65
captureFunction · 0.65
captureMethod · 0.65

Calls

no outgoing calls

Tested by 2

renderFunction · 0.52
captureFunction · 0.52