# ramp

function in `@dioramajs/text/shimmer`

```ts
import { ramp } from '@dioramajs/text/shimmer'
```

The colors as a ramp that comes back to the first one, mixed in OKLab: wraps without a seam.

```ts
function ramp(colors: readonly Color[], size?: number): DataTexture
```

| Parameter | Type | Description |
| --- | --- | --- |
| `colors` | `readonly Color[]` |  |
| `size?` | `number` |  |

Defined in [packages/text/src/shimmer.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/shimmer.ts#L189).
