Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / Screen

Variable: Screen

const Screen: typeof Screen = bot.Screen

Defined in: index.ts:66

Screen capture class for taking screenshots and getting pixel colors

Example

typescript
import { Screen } from "@tego/botjs";

const screen = new Screen();
const bitmap = await screen.capture(0, 0, 800, 600);
console.log(`Captured ${bitmap.width}x${bitmap.height} region`);

Released under the MIT License.