54
Comments
  • 5
    Starred immediatly. I was needing something like this for a loooong time, thank you :) i will raise issues if i find some bugs, beware.
  • 4
    To improve it you could either use the brightness of each pixel to determine a ASCII mapping, for darker pixel, use a character that filled in more, or you could computer gradiants for small sets of pixels like 3x3 and use a character that follows the gradiants as best as possible. Would make for more interesting results.

    Edit: looks like you might be using the brightness approach?
  • 1
    @Floydian i like the way you think ;)
  • 2
    @hexc will look into the things you mentioned. Currently my approach is pretty basic, I use opencv to get a matrix of different pixel colors. After that i map the most frequent colors to a symbol. There is additional logic to combine colors that are similar like red and maroon, so they are assigned the same symbol.
  • 4
    Can it do this?
  • 3
    @py2js do you mean this?
  • 1
    @JSSaini07 nope. All distorted and not even in correct shape, also I want to coloured one.
  • 1
    @py2js color is pretty easy to include (will do this), Also distortion is due to force fitting it into terminal space.
  • 4
  • 3
    I’ll give you 5 internet points if you can write that in JS.
  • 2
    @BM32 hahaha, will give it a try!
  • 2
    @BM32 5 ? Damn i must find this old old repo 😵
  • 0
    I NEEDED THIS
Add Comment