From f055f50cb2110eba13848f4d066e90a583b80d05 Mon Sep 17 00:00:00 2001 From: Olivier Cartier Date: Sun, 10 Jan 2016 23:43:56 -0500 Subject: [PATCH] Revert "fix typo" This reverts commit 384bd9e564e550fb76073a35e69d06cc95d7a514. --- .gitignore | 8 -------- examples/collision-detection.js | 2 +- examples/color.js | 12 +++++------- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 854d0bc..7895a26 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,3 @@ /coverage /node_modules/ npm-debug.log - -.DS_Store - -# IntelliJ project files -.idea -*.iml -out -gen \ No newline at end of file diff --git a/examples/collision-detection.js b/examples/collision-detection.js index 0a25960..aa275aa 100644 --- a/examples/collision-detection.js +++ b/examples/collision-detection.js @@ -18,5 +18,5 @@ orb.connect(function() { }, 1000); }); - orb.roll(155, 0); + orb.roll(155, 180); }); diff --git a/examples/color.js b/examples/color.js index d2c250c..53e4226 100644 --- a/examples/color.js +++ b/examples/color.js @@ -5,25 +5,23 @@ var orb = sphero(process.env.PORT); orb.connect(function() { // sets color to the provided r/g/b values - orb.color({ red: 255, green: 0, blue: 0 }); + orb.color({ red: 255, green: 0, blue: 255 }); setTimeout(function() { console.log("color 1"); // sets color to the provided hex value - orb.color(0x0000ff); + orb.color(0xff0000); }, 1000); setTimeout(function() { console.log("color 2"); // hex numbers can also be passed in strings - orb.color("000000"); + orb.color("00ff00"); }, 2000); setTimeout(function() { + console.log("color 3"); // sets color to the provided color name - orb.sleep(0, 0, 0); - orb.disconnect(function() { console.log("bye!");}); - process.exit(); + orb.color("magenta"); }, 3000); - });