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
var THREE = require('three') | |
var SimplexNoise = require('simplex-noise') | |
document.documentElement.style.width = '100%' | |
document.documentElement.style.height = '100%' | |
document.body.style.width = '100%' | |
document.body.style.height = '100%' | |
document.body.style.margin = '0' | |
document.body.style.overflow = 'hidden' | |
var canvas = document.createElement('canvas') |
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
#!/bin/bash | |
full=0 | |
while getopts ":n:fm:" opt; do | |
case ${opt} in | |
n ) name=$OPTARG | |
;; | |
f ) echo "Creating full scaffold" | |
full=1 | |
;; | |
m ) modules="$OPTARG " |
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
window.onload = function() { | |
var svgNS = "http://www.w3.org/2000/svg" | |
var svgGroup = document.getElementById("stars"); | |
var galaxy = document.getElementById("galaxy").getBoundingClientRect(); | |
var center = { x: galaxy.width / 2, y: galaxy.height / 2 }; | |
var stars = [] | |
window.onresize = function() { | |
galaxy = document.getElementById("galaxy").getBoundingClientRect(); | |
center = { x: galaxy.width / 2, y: galaxy.height / 2 }; |