-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add docs for the screenshot method
- Loading branch information
1 parent
9f8a1cd
commit b6b18c6
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: screenshot | ||
--- | ||
|
||
Take a screenshot for the current running game. | ||
|
||
## Usage | ||
```js | ||
const nostalgist = await Nostalgist.nes('flappybird.nes') | ||
|
||
const blob = await nostalgist.screenshot() | ||
``` | ||
|
||
## Returns | ||
A `Promise` of the `Blob` of the screenshot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters