roar/js/dither.js

11 lines
155 B
JavaScript
Raw Normal View History

2018-10-24 15:14:46 +00:00
var dither = {
aa: '▓▒░ ',
a: '▓',
b: '▒',
c: '░',
d: ' ',
p: function(n){
return dither.aa[Math.floor(Math.abs(n) % 4)]
}
}