toOklab function
OKLab (Björn Ottosson) of a linear sRGB colour, three's working space.
import { toOklab } from '@dioramajs/diorama/kit'Mixed in OKLab, two colours meet through a clean middle instead of a muddy grey.
function toOklab(color: Color): OklabParameters
| Name | Type | Description |
|---|---|---|
color | Color |
Also exported from @dioramajs/effects/kit.
Defined in packages/effects/src/kit.ts.