# Crop

interface in `@dioramajs/diorama/effects`

```ts
import type { Crop } from '@dioramajs/diorama/effects'
```

A region of a picture in texture UV, y up: `texture uv = box uv * size + xy`.

```ts
interface Crop
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `height` | `number` | Height in texture UV. |
| `width` | `number` | Width in texture UV. |
| `x` | `number` | Left edge in texture UV. |
| `y` | `number` | Bottom edge in texture UV. |

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/types.ts#L808).
