The module author has access to a variety of APIs that provide access to the displays, to the clock, to the network, etc. This pages documents those APIs.
## debug
Based on the npm debug module, a debugger that logs to the console on either the client or server under the wall:module:$NAME
namespace.
Note that this is currently automagically injected (no require('debug')
is needed).
The normal underscore.js library.
var _ = require('underscore');
A function that asserts that its first parameter is truthy. Failures are logged to the console, along with the additional arguments to assert
, and an exception is thrown.
var assert = require('assert');
A class that represents a 2D rectangle.
var Rectangle = require('lib/rectangle');
A Polygon that describes the wall geometry for this layout.
Note that this is currently automagically injected.
A Polygon that describes the global wall geometry, regardless of layout.
Note that this is currently automagically injected.
A namespace of handy geometry utilities.
A raw HTML5 Canvas surface that you can interact with.
A canvas based on the popular three.js 3D framework.
A canvas based on the p5js port of processing. This surface is set up to let you operate on the entire wall with minimal changes to your p5 sketches.