This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parallel() { | |
| var args = Array.apply(null, arguments) | |
| , callback = args.pop() | |
| , returns = [] | |
| , len = 0 | |
| args.forEach(function (el, i) { | |
| el(function () { | |
| var a = Array.apply(null, arguments) | |
| , e = a.shift() | |
| if (e) return callback(e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //http://codepen.io/AllanDennis/pen/enaIj | |
| // Replicate the above coeepen in FAMO.US | |
| //This should enable understanding of FAMO.US perspective, rotation and event handling | |
| // ** NOT WORKING | |
| define(function(require, exports, module) { | |
| var matrix; | |
| var x,y,rot,scale; | |
| var rotate = [ | |
| [0,0,0], | |
| [0, 90,0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(function(require, exports, module) { | |
| var matrix; | |
| var x,y,rot,scale; | |
| function confetti() { | |
| for (var i=1;i<=colors.length;i++) { | |
| x = Math.floor(Math.random() * 15) + 1 | |
| y = Math.floor(Math.random() * 10) + 1 |