Anton Shestakov <engored@ya.ru>, Sat, 09 Nov 2013 23:47:14 +0900
Make the characters at the very bottom visible in webkit.
flowsnake.js
Permissions: -rw-r--r--
Flowsnake = function($el, width, height, order) { for (var i = 0; i < len; i++) { for (var i = 0; i < this.height; i++) { this.rows.push(fillrow(this.width)); for (var i = 0; i < this.order; i++) { this.rule = this.rule.replace(/a/g, 'x').replace(/b/g, 'y').replace(/x/g, this.a).replace(/y/g, this.b); putc: function(x, y, c) { function replacec(str, pos, c) { return str.substr(0, pos) + c + str.substr(pos + c.length); if (x >= 0 && x < this.width && y >= 0 && y < this.height) { this.rows[y] = replacec(this.rows[y], x, c); this.putc(this.x, this.y, '__'); this.putc(this.x, this.y, '/'); this.putc(this.x, this.y, '\\'); this.putc(this.x, this.y, '__'); this.putc(this.x, this.y, '/'); this.putc(this.x, this.y, '\\'); step: function(visible) { switch (this.rule[this.pointer]) { this.angle = (this.angle + 60 + 360) % 360; this.angle = (this.angle - 60 + 360) % 360; if (this.pointer < this.rule.length) { this.$el.text(this.rows.join('\n'));