1
mirror of git://git.acid.vegas/asciiblaster.git synced 2024-11-22 07:56:43 +00:00
asciiblaster/docs/js/dither.js

11 lines
155 B
JavaScript
Raw Normal View History

2023-06-24 03:23:33 +00:00
var dither = {
aa: '▓▒░ ',
a: '▓',
b: '▒',
c: '░',
d: ' ',
p: function(n){
return dither.aa[Math.floor(Math.abs(n) % 4)]
}
}