coverOf function
Crop of a picture of `media` aspect that covers a screen of `screen` aspect: scale and offset of the UV, centred across and from the top down, as a screenshot is read.
import { coverOf } from '@dioramajs/model/device'.
function coverOf(
media: number,
screen: number,
): [number, number, number, number]Parameters
| Name | Type | Description |
|---|---|---|
media | number | |
screen | number |
Defined in packages/model/src/device.ts.