Skip to content

Function: generateMondrian() ​

ts
function generateMondrian(spec, ctx): RawTile[];

Random recursive guillotine partition of the region's bounding box. Rotation and origin are ignored: Mondrian layouts are always axis-aligned to the region.

Parameters ​

ParameterType
specMondrianSpec
ctxGenerateContext

Returns ​

RawTile[]

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