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 TimeTraveler = (function() { | |
var time, | |
def = function(value) { | |
var values = {}, | |
timeTraveler = { | |
get value() { | |
var lastTime = Object.keys(values) | |
.filter(function(pastTime) { | |
return pastTime < def.time; | |
}) |
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
is4v0g7hw43x47vi |
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
precision mediump float; | |
varying vec2 position; | |
uniform sampler2D webcam; | |
float wave(float x, float amount) { | |
return (sin(x * amount) + 1.) * .5; | |
} | |
void main() { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="vendor/polymer/polymer.js" debug></script> | |
<link rel="import" href="elements/three-scene.html"/> | |
<style type="text/css"> | |
html, body { | |
margin: 0px; | |
padding: 0px; | |
width: 100%; |
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
<html> | |
<head> | |
<script src="vendor/polymer/polymer.js" debug></script> | |
<link rel="import" href="elements/three-scene.html"/> | |
</head> | |
<body> | |
<three-scene width="100%" height="100%"> | |
<three-camera x="1" y="1" z="1" /> | |
<three-material type="MeshLambert" color="0xCC0000" id="sphereMaterial" /> | |
<three-geometry type="Sphere" radius="5" segements="16" rings="16"/> |
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
<polymer-element name="three-object3d" attributes="x y z"> | |
<script> | |
(function() { | |
function bindAttrib(from, target, name) { | |
from[name] && (target[name] = from[name]); | |
Object.defineProperty(from, name, { | |
enumerable: true, | |
set: function(value) { |
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
<polymer-element name="three-object3d" attributes="x y z"> | |
<script> | |
(function() { | |
function bindAttrib(from, target, name) { | |
from[name] && (target[name] = from[name]); | |
Object.defineProperty(from, name, { | |
enumerable: true, | |
set: function(value) { |
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
<three-scene> | |
<three-object id="someCube"> | |
<geometry-cube width="20" height="20 x="1" y="2" z="3"/> | |
<material> | |
<texture src="woo.png"/> | |
</material> | |
</three-object> | |
</three-scene> |
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
define(function (require, exports, module) { | |
"use strict"; | |
var DocumentManager = brackets.getModule("document/DocumentManager"); | |
brackets.getModule("utils/AppInit").appReady(function () { | |
var p4 = require("p4"); | |
$(DocumentManager) | |
.on("dirtyFlagChange", function (e, doc) { |