# screenOf

function in `@dioramajs/model/device`

```ts
import { screenOf } from '@dioramajs/model/device'
```

The screen aspect (width over height) of a frame for a box of `aspect`: within the range of the
real device, in the box's orientation for a phone or a tablet, always landscape for a laptop.

```ts
function screenOf(frame: Frame, aspect: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `frame` | `Frame` |  |
| `aspect` | `number` |  |

Defined in [packages/model/src/device.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/device.ts#L115).
