color function
Colour param.
import { color } from '@dioramajs/diorama'A CSS colour string on the CPU, as written; a color uniform on the GPU. The uniform reads var(--name) and currentColor from the element when the value is written and again in every frame the element draws, so a theme switch shows with the next frame. Code that reads the string itself resolves it with cssColor(value, element) of @dioramajs/render.
function color(value: string): ColorParamParameters
| Name | Type | Description |
|---|---|---|
value | string |
Also exported from @dioramajs/diorama/auto, @dioramajs/diorama/effects, @dioramajs/effects.
Defined in packages/effects/src/define.ts.