This file contains 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
const THREE = global.THREE = require('three'); | |
const headlessGl = require("gl"); | |
const pngStream = require('three-png-stream'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const looksSame = require('looks-same'); | |
const width = 400; | |
const height = 300; |
This file contains 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
#!/bin/sh | |
#npm install watchify -g | |
shellpath=`dirname $0` | |
watchify $shellpath"/local-modules/main.js" -d -o $shellpath"/bundle.js" -v |
This file contains 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(window, module, define) { | |
'use strict'; | |
var context=function(require){ | |
//edit here | |
return moduleOnto; |
This file contains 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
var Event={ | |
// Trigger a new event | |
trigger: function(eventType, data, bubbles, cancelable) { | |
var event = new CustomEvent(eventType, { | |
detail: data, | |
bubbles: !!bubbles, | |
cancelable: !!cancelable | |
}); | |
// Make sure to trigger the event on the given target, or dispatch it from |