SurfacePaint

The colour scale a heatmap or contour draws with, as returned by parseSurfacePaint.

@internote/canvas-sdkInterface
On this page
import { SurfacePaint } from '@internote/canvas-sdk';

#Fields

flatRequired
True when there is only one colour and no range to show, as with a hex(…). The surface then shows value as opacity instead: faint at the low end, solid at the high end.
boolean
stopsRequired
CSS colours from the lowest value to the highest; the surface blends between neighbours.
string[]

Declared in packages/canvas-sdk/src/paint/colour.ts:261.

Last updated