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
export class MyClass { | |
/** | |
* @attribute | |
* Adding an attribute tag tag in a block comment flags the property as an attribute to the editor. | |
*/ | |
speed = 10 | |
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
class Rotator { | |
/** | |
* @attribute | |
* Including the `@attribute` block tag exposes the property to the editor. | |
*/ | |
speed = 10 | |
/** |
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 () { | |
// Shared Lib | |
var CANVAS_ID = 'application-canvas'; | |
// Needed as we will have edge cases for particular versions of iOS | |
// returns null if not iOS | |
var getIosVersion = function () { | |
if (/iP(hone|od|ad)/.test(navigator.platform)) { | |
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); | |
var version = [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)]; |
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
Install-ChocolateyZipPackage -PackageName armirror-noisecancelling -Url https://cloudbuild-33393.firebaseapp.com/we-are-kuva/bose/noisecancelling-rollout/build.zip -UnzipLocation "$env:UserProfile\Desktop\Experience" | |
Install-ChocolateyPinnedTaskBarItem -TargetFilePath "$env:UserProfile\Desktop\Experience\NoiseCancelling.exe" |
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 Vue = require('vue') | |
var VueProgressiveImage = require('vue-progressive-image').default; | |
Vue.use( VueProgressiveImage ) | |
const data = {display: true} | |
new Vue({ el: '#app', data:data }); | |
data.display = false |
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
/* | |
GPGPU | |
*/ | |
attr vec2 p; // current position | |
attr vec2 endP; // Final resting position in final image | |
/* | |
Animate this between 0 and 1 | |
(0 == use curl movement) (1 == move towards endP) |
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
vec3 parallaxCorrectNormal( vec3 v, vec3 cubeSize, vec3 cubePos ) { | |
vec3 nDir = normalize(v); | |
vec3 rbmax = ( .5 * ( cubeSize - cubePos ) - pos ) / nDir; | |
vec3 rbmin = ( - .5 * ( cubeSize - cubePos ) - pos ) / nDir; | |
vec3 rbminmax; | |
rbminmax.x = ( nDir.x > 0. )?rbmax.x:rbmin.x; | |
rbminmax.y = ( nDir.y > 0. )?rbmax.y:rbmin.y; | |
rbminmax.z = ( nDir.z > 0. )?rbmax.z:rbmin.z; |
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
varying vec2 vUv; | |
uniform sampler2D tDiffuse; | |
uniform float isPicking; | |
void main() { | |
vec3 color = texture2D(tDiffuse, vUv).rgb; | |
gl_FragColor = vec4( mix( color, pickingColor, isPicking ), 1.0); |
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
/* | |
Propsed visualisation API | |
*/ | |
( canvas ) => { | |
start(), // Starts the render loop | |
pause, // Pauses the render loop, could fade out (may not be needed) | |
resize( w, h ), // | |
clear(), // clears the canvas. Note that if the artwork is not paused, it will be redrawn in the next frame |
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 visualisation = new ToyotaExp( canvas ) | |
visualisation.on( 'render', function(){ | |
yourCallBack( +new Date() ) | |
}) |
NewerOlder