Screenshot
Capture the current rendered frame and download it as an image.
Usage
ts
import { Screenshot } from '@threeuse/core/plugins'
app.use(Screenshot, { format: 'png' })
button.addEventListener('click', () => {
app.$screenshot.capture('my-scene.png')
})Options
| Option | Type | Default | Description |
|---|---|---|---|
format | 'png' | 'jpeg' | 'png' | Image format |
quality | number | 0.95 | JPEG quality (0–1) |