Created
September 11, 2014 12:23
-
-
Save murilopolese/1d30423f7deb7bf0ff63 to your computer and use it in GitHub Desktop.
I miss sailing
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
console.sailing = function () { | |
var pos = 0; | |
setInterval( function() { | |
clear(); | |
var line1 = ''; | |
var line2 = ''; | |
for( var i = 0; i < pos; i++ ) { | |
line1 += ' '; | |
line2 += ' '; | |
} | |
line1 += " |> "; | |
line2 += "\\___/"; | |
pos = ( pos + 1 ) % 30; | |
console.log( line1 ); | |
console.log( line2 ); | |
}, 200 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment