# QualitySpec

interface in `@dioramajs/diorama/effects`

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

How an effect gets cheaper: the lowest tier it runs at and its caps per tier.

```ts
interface QualitySpec<P extends ParamSpec>
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `low?` | `QualityCaps<P>` | Caps at the 'low' tier. |
| `medium?` | `QualityCaps<P>` | Caps at the 'medium' tier. |
| `min?` | `QualityTier` | Lowest tier the effect runs at. Below it the instance is 'off' and the element stays DOM. Default 'low'. |

Also exported from `@dioramajs/effects`.

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