# opacity

function in `@dioramajs/particles/drops`

```ts
import { opacity } from '@dioramajs/particles/drops'
```

How much of a drop shows: whole while it runs or grows, then fading over its last
`FADE`; with a `lifetime`, also fading over its last third of it, running or not.

```ts
function opacity(drop: Drop, lifetime?: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `drop` | `Drop` |  |
| `lifetime?` | `number` |  |

Defined in [packages/particles/src/drops.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/particles/src/drops.ts#L754).
