Class: GridTangle

GridTangle(mask, options)

Base class for a grid tangle, which is an area containg a design based on a grid.

Constructor

new GridTangle(mask, options)

Create a new GridTangle

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 GridTangleOptions

A map of values to be loaded into instance variables.

Source:

Methods

buildGridPoints()

Build a set of grid points using the grid* options. There will be enough ppints to fill the rectangular area defined by the mask. Some of the points may be well outside the area, depending on the algorithm used to produce the points.

Source:

execute()

Build the tangle. Executes the this.build method with before and after processing appropriate to the tangle type. This is normally the last method called by a child class.

Source:

showGrid()

Draw the grid on the graphics buffer

Source: