Skip to content

Commit

Permalink
Add example of using random color in sphero file
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Jun 15, 2013
1 parent 7e28830 commit d8a3deb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sphero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# | .--------------. | I AM SPHERO! I can do a lot of things:
# | | ____ | |
# | | .' `. | | sphero.color("azure")
# | | / .--. \ | | sphero.roll(SPEED,DIRECTION_IN_DEGREES)
# | | | | | | | | sphero.heading = DIRECTION_IN_DEGREES
# | | \ `--' / | | sphero.keep_going(TIME_IN_SECONDS)
# | | `.____.' | | sphero.stop
# | | | |
# | | / .--. \ | | sphero.color(random_color)
# | | | | | | | | sphero.roll(SPEED, DIRECTION_IN_DEGREES)
# | | \ `--' / | | sphero.heading = DIRECTION_IN_DEGREES
# | | `.____.' | | sphero.keep_going(TIME_IN_SECONDS)
# | | | | sphero.stop
# | '--------------' |
# '----------------'

Expand Down

0 comments on commit d8a3deb

Please sign in to comment.