UNPKG

fieldkit

Version:

Basic building blocks for computational design projects. Written in CoffeeScript for browser and server environments.

70 lines (45 loc) 1.46 kB
// Generated by CoffeeScript 1.6.3 /* _____ __ _____ __ ____ / ___/ / / /____/ / / / \ FieldKit / ___/ /_/ /____/ / /__ / / / (c) 2013, FIELD. All rights reserved. /_/ /____/ /____/ /_____/ http://www.field.io Created by Marcus Wendt on 07/03/2013 */ (function() { var extend, fk, util; util = require('./util'); extend = function() { var pkg; switch (arguments.length) { case 1: return util.extend(fk, arguments[0]); case 2: pkg = arguments[0]; if (fk[pkg] == null) { fk[pkg] = {}; } return util.extend(fk[pkg], arguments[1]); } }; fk = {}; extend(require('./color')); extend(require('./time')); extend('math', require('./math/math')); extend('math', require('./math/random')); extend('math', require('./math/noise')); extend('math', require('./math/vector')); extend('math', require('./math/rect')); extend('math', require('./math/box')); extend('math', require('./math/line')); extend('util', util); extend('physics', require('./physics/physics')); extend('physics', require('./physics/particle')); extend('physics', require('./physics/behaviours')); extend('physics', require('./physics/constraints')); extend('client', require('./client/sketch')); module.exports = fk; if (typeof window !== "undefined" && window !== null) { window.fk = fk; } }).call(this);