Skip to content

gosper_curve

function gosper_curve(
level,
orientation?,
size?): Point[];

Defined in: gosper.ts:377

Every cell centre of the Gosper curve at level, in curve order.

Only useful for drawing the grid; indexing goes through gosper_encode and never materializes the curve.

ParameterTypeDefault valueDescription
levelnumberundefinedCurve level; the curve has 7^level cells.
orientationHexOrientation"flat"Which way up the hexagons sit. Defaults to "flat".
sizenumber1Level-0 hexagon size. Defaults to 1.

Point[]