ramp function
The colors as a ramp that comes back to the first one, mixed in OKLab: wraps without a seam.
import { ramp } from '@dioramajs/text/shimmer'function ramp(colors: readonly Color[], size?: number): DataTextureParameters
| Name | Type | Description |
|---|---|---|
colors | readonly Color[] | |
size? | number | Default |
Defined in packages/text/src/shimmer.ts.