Last active
August 29, 2015 14:06
-
-
Save d0nd3r3k/32d23cc2042f8f082221 to your computer and use it in GitHub Desktop.
[wearscript] Google Glass experiment 2 - Virtual Reality
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 style="width:100%; height:100%; overflow:hidden"> | |
<body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
<script> | |
function main() { | |
if (WS.scriptVersion(1)) return; | |
WS.cameraOn(.1, 360, 640); | |
WS.cvInit(function () { | |
WS.gestureCallback('onGestureTAP', function () { | |
WS.sound('SUCCESS'); | |
WS.displayWarpView(); | |
WS.warpPreviewSampleGlass(''); | |
}); | |
}); | |
} | |
window.onload = main; | |
</script> | |
</body> | |
</html> |
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
{"name":"Hello"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment