summaryrefslogtreecommitdiff
path: root/js/dither.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dither.js')
-rw-r--r--js/dither.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/dither.js b/js/dither.js
index d3340dc..f5c86c9 100644
--- a/js/dither.js
+++ b/js/dither.js
@@ -5,11 +5,6 @@ var dither = {
c: '░',
d: ' ',
p: function(n){
- if (0 <= 0 && n < 1) {
- return dither.aa[Math.floor(n * 4)]
- }
- else {
- return dither.aa[Math.floor(n % 4)]
- }
+ return dither.aa[Math.floor(Math.abs(n) % 4)]
}
}