Class: BoxSpirals

BoxSpirals(mask, options)

Define the BoxSpiral Tangle. The BoxSpiral tangle is a collection of BoxSpiralElements placed randomly. It is expected that some elements will partially or completely cover other elements. Generally, enough elements are placed in the area to ensure the area background is completely covered. The spirals may vary in size and rotation.

Constructor

new BoxSpirals(mask, options)

Create a new BoxSpiral

Parameters:
Name Type Description
mask Array.<Point> | Polygon

Vertices of a polygon used as a mask. Only the portion of the tangle inside the polygon will be visible.

options BoxSpiralOptions

The options list.

Source: