Skip to content

Function: addTripcolor()

ts
function addTripcolor(plot, opts): TripcolorHandle;

Defined in: charts/tri.ts:125

Flat-shaded triangles (tripcolor): each face takes the mean of its three vertex values. This is matplotlib's default shading="flat"; smooth Gouraud shading would need per-vertex colours, which the patches layer does not carry.

Parameters

ParameterType
plotPlot
optsTripcolorOptions

Returns

TripcolorHandle

MIT licensed. WebGL2 required.