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-sdkFunction
On this page
import { appliedRampCss } from '@internote/canvas-sdk';

#Signature

(ramp: string, x: number, fallback?: string): string

#Parameters

ramp
The ramp's name, or a hue.
x
The place, 0 to 1; clamped.
fallback
The CSS for a name that is no ramp.

#Example

appliedRampCss('temperature', 0.42);

Declared in packages/canvas-sdk/src/paint/index.ts:199.

Last updated