appliedRampCss
The CSS colour a ramp gives a place along it — the host's half of an opaque application (D69). A named ramp's stops, or a hue's own run.
@internote/canvas-sdkOn this page
import { appliedRampCss } from '@internote/canvas-sdk';#Signature
(ramp: string, x: number, fallback?: string): string#Parameters
rampThe ramp's name, or a hue.
xThe place, 0 to 1; clamped.
fallbackThe CSS for a name that is no ramp.
#Example
appliedRampCss('temperature', 0.42);Declared in packages/canvas-sdk/src/paint/index.ts:199.