I liked this little trick for going over and over an array:
this.flaps = [ '------', '/‾\\/‾\\', '‾‾\\/‾‾' ]; ... this.el.innerHTML = this.flaps[this.flap_i++ % this.flaps.length];
this.flaps = [ '------', '/‾\\/‾\\', '‾‾\\/‾‾' ]; ... this.el.innerHTML = this.flaps[this.flap_i++ % this.flaps.length];
No comments yet.