Skip to content

Function: gradientFill() ​

ts
function gradientFill(stops, options?): CellFill;

Color by position: each cell takes the gradient's color at its centroid. Stops are hex colors (#rgb or #rrggbb), spaced evenly and blended in the OKLab color space, which keeps the middle of the gradient from going muddy.

Parameters ​

ParameterType
stopsreadonly string[]
optionsGradientOptions

Returns ​

CellFill

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).