Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

toOklab function

OKLab (Björn Ottosson) of a linear sRGB colour, three's working space.

View as Markdown
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): Oklab

Parameters

NameTypeDescription
colorColor

Also exported from @dioramajs/effects/kit.

Defined in packages/effects/src/kit.ts.