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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <script> | |
| function main() { | |
| if (WSRAW.scriptVersion(1)) return; | |
| WS.gestureCallback('onPebbleClick', function (name) { | |
| switch (name) { | |
| case 'UP': | |
| WS.say('up'); | |
| break; |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <canvas id="canvas" width="640" height="360" style="display:block"></canvas> | |
| <script> | |
| function server() { | |
| WS.cameraOn(2, 720, 1280); | |
| WS.displayWarpView(); | |
| function sample() { | |
| setTimeout(function (){ | |
| WS.warpDraw(640 / 2, 360 / 2, 10, 255, 0, 0); |
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
| <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.serverConnect('{{WSUrl}}', function () { | |
| WS.sensorOn('accelerometer', .25); | |
| WS.cameraOn(1); | |
| WS.dataLog(false, true, .15); | |
| }); |
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
| <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.displayWarpView([3.0439236881258753, -0.09811170052611454, -1351.6367347302782, 0.03321587552236447, 3.053154626691264, -40.341560801335376, -0.00010172584427831437, -5.8759263127489935e-05, 1.0]); | |
| WS.cameraOn(.1, 360, 640); | |
| } | |
| window.onload = main; | |
| </script> |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <head> | |
| <!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>--> | |
| </head> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <canvas id="canvas" width="640" height="360" style="display:block"></canvas> | |
| <script> | |
| function cb(data) { | |
| // Changes canvas color with head rotation |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0;" bgcolor='#000000'> | |
| <script> | |
| function server() { | |
| WS.sound('SUCCESS'); | |
| WS.cameraOn(.5, 360, 640); | |
| WS.dataLog(false, true, .15); | |
| } | |
| function main() { | |
| if (WS.scriptVersion(1)) return; |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <canvas id="canvas" width="640" height="360" style="display:block"></canvas> | |
| <script> | |
| function next_image() { | |
| if (SIZES.length) { | |
| var size = SIZES.pop(); | |
| WS.cameraOn(.5, size[0], size[1]); | |
| WS.sound('TAP'); | |
| } else { |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <script> | |
| function server() { | |
| WS.displayCardTree(); | |
| var select = function () {WS.say('select')}; | |
| var tap = function () {}; | |
| var select = function (n) {return function () {WS.say('select ' + n);WS.log('select ' + n)}}; | |
| var log = function (n) {return function () {WS.log('log ' + n)}}; | |
| var tap = function (n) {return function () {WS.say('tap ' + n);WS.log('tap ' + n)}}; |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <script> | |
| function server() { | |
| WS.displayCardTree(); | |
| var tree = new WS.Cards(); | |
| tree.add('Summary', 'Auto'); | |
| tree.add('Summary', 'Auto', function () {WS.say('selected')}); // Select | |
| tree.add('Summary', 'Auto', function () {WS.say('selected')}, function () {WS.say('tap')}); // Select + Tap | |
| tree.add('Summary', 'Auto', 'Say', function () {WS.say('Say clicked')}, 'Log', function () {WS.log('log clicked')}); // Menu |
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
| <html style="width:100%; height:100%; overflow:hidden"> | |
| <body style="width:100%; height:100%; overflow:hidden; margin:0"> | |
| <script> | |
| function main() { | |
| if (WSRAW.scriptVersion(1)) return; | |
| WSRAW.say('Logging'); | |
| var sensors = ['gps', 'accelerometer', 'magneticField', 'orientation', 'gyroscope', | |
| 'light', 'gravity', 'linearAcceleration', 'rotationVector']; | |
| for (var i = 0; i < sensors.length; i++) | |
| WSRAW.sensorOn(WSRAW.sensor(sensors[i]), .15); |