roar/js/dither.js
Lucio Andrés Illanes Albornoz (arab, vxp) 449a186b8e Initial commit.
2018-11-26 10:22:19 +01:00

11 lines
155 B
JavaScript

var dither = {
aa: '▓▒░ ',
a: '▓',
b: '▒',
c: '░',
d: ' ',
p: function(n){
return dither.aa[Math.floor(Math.abs(n) % 4)]
}
}