Animated ASCII Art for Web Pages (ascii.rest)

237 pointsby turrini7 hours ago55 comments

boguscoder 5 hours ago

This looks aesthetically pleasing but this is not ASCII Art it seems, where’s ascii? All those differently sized dots are not ascii chars, are they? Perhaps this is unicode-art?

elevaet 5 hours ago

There are lots in there with proper ASCII check out https://ascii.rest/julia-set/ for example

moralestapia 4 hours ago

Your point is valid, I just want to add that deriving ASCII versions of them should be trivial as ASCII already has dots of different pitch, etc.

ghurtado 4 hours ago

The point is that what you've described is no longer a useful definition of "ASCII art". That's now "art with dots". The fact that it's "technically" ASCII is as irrelevant as it is unimpressive.

"ASCII art", defined honestly, means "limited set ASCII art".

mynameisvlad 4 hours ago

Please, go right ahead and make your own trueascii.rest and show it to the class.

nomel 3 hours ago

You're asking for the impossible!

ghurtado 2 hours ago

If you insist:

https://github.com/garciahurtado/ascii-art-studio

Where's yours?

nomel 2 hours ago

This isn't ascii art either, since nearly all of the information is in the color. This is, what we used to call, ANSI art [1].

[1] https://en.wikipedia.org/wiki/ANSI_art

ghurtado 2 hours ago

Well, it's technically PETSCII art, but the model can be trained on any bitmap charset. So you can make ATARIART or SPECCYART or whatever.

It's not correct to say that most of the information is in the color, though.

I can't remember if it's explained in the readme or not, but what makes this different from other converters is that it matches 1bit 8x8 blocks from the source image to the best matching character, increasing the perceived resolution of the output image.

It's a dumb idea I wanted to implement to amuse myself, and it's not better or worse than any similar tools, but AFAIK it uses a novel approach: fast by using a custom trained NN and uniquely looking output, similar to what a human artist might create by hand.

ktm5j 2 hours ago

I love how prepared for this you were.

gavmor 5 hours ago

Gorgeous, impressive, well done—

But it strikes me as an affectation of technical austerity, i.e. you’re borrowing the credibility of a constrained medium without embracing its constraints.

Again, it's very pretty but... it's a bit like reconfiguring your Tesla to look more like a Citroën 2CV.

graypegg 5 hours ago

Ayyy that's a much more articulate way to put what I was also thinking.

"Being constructed of text characters" is a very loose definition of ASCII art. Not to say it's not visually interesting, but just that it's on the far ends of the histogram of what people think of when they hear "ASCII art".

Personally, I think the fact this is relying on colour for contrast makes this feel more like a shader that quantizes the input into little dots that just happen to be 1 of 3 characters, than ASCII Art. It's a vague border between that and an ASCII shader, and then ASCII art, but there's definitely some measureable distance between those peaks.

wuliwong 4 hours ago

What do you think they should have called it? Any suggestion that is an unfamiliar term would mean that almost nobody would have clicked on the link and therefore it would not have risen to the top of HN and therefore none of us would even know this exists. I think I think I can accept a loose definition of ASCII art for actually being able to see this page.

(=ᵔᗜᵔ=)

ghurtado 4 hours ago

So your point is that it's cool to misrepresent what things actually are in order to promote them, because if you were honest about what it actually is, nobody would be interested?

graypegg 4 hours ago

Nahhhh you don't need a new term. It's just like... on the fringes of what the term means.

I'd call it an "ASCII-Art inspired shader", but some % of people would look at it and immediately call it "ASCII Art" with no confusion. Some other % of people are also going to scoff at me saying it's "ASCII-Art inspired" at all.

Should mention, I have no issue with this little project! I'm just agreeing with the parent comment that this is just hinting at the limitations of ASCII art without actually working with them, in our opinion. Thinking about art being an important step in appreciating art, and all of that.

ghurtado 4 hours ago

> affectation of technical austerity,

How does one learn to write like this? Damn.

reaperducer 2 hours ago

How does one learn to write like this?

Read books. Actual books. The kind made from dead trees.

The more you read, the better you write. That's why our teachers drilled the importance of reading into us at such an early age.

frabia 3 hours ago

Agree, though that’s the current trend of UI design. As you expressed eloquently, the purpose is exactly that: to try to project some values previously attributed by these visuals (eg slow craft, effort) to today’s products.

BugsJustFindMe 5 hours ago

I see nothing being animated because my system is set to prefer reduced motion. That's a cool accommodation, but I wish at least the demo page made that more obvious.

Also, the art scenes section is not ASCII.

bas3line 3 hours ago

Should be now fixed!

BugsJustFindMe 3 hours ago

I see you added a button (thanks!), but that doesn't solve the information problem where the person won't know why it isn't working and that they need to click the button. I suggest a simple highlighted message right above or below the image. Your "holds the first frame for anyone who prefers reduced motion" blurb is _buried_, and in my case I didn't even know that I had that enabled.

robbomacrae 5 hours ago

Thats awesome. I did something similar (much smaller scale) for Claude Code/Pi to show how much it's working https://github.com/robdmac/flow

But this ASCII Art reminds me of my original desire to have something for each server I SSH into to help me keep a mental map of where I am. I'm not SSH'ing into servers anymore but if I was, I'd totally be trying to remake these scenes on the terminal!

conesus 5 hours ago

Flow is gorgeous and fits this ascii art theme beautifully. I've installed it and have lots of changes I'd like to make. Are you open to PRs or should I maintain my own fork without expectation of upstreaming anything?

Examples of changes I'd like to see:

    1. I want a decay on the flame, so on every state change, the flame slowly works its way back down to a base rate, say at 2 minutes. That would imply that a strong fire is a recently changed state, while a decayed flame is a stale state that hasn't changed in a while.
    2. Automatic choosing of a different animation on every open. I run half a dozen to a dozen agents on a single terminal window (full screened on a 27" monitor) and I already built a way to distinguish sessions from other other with my pre-plugin psuedoterminal crabigator and I'd like to do the same for these animations. Basically a way to distinguish sessions from other other.
    3. More so than just changing animations, I'd like to have a random palette chosen per-animation, so there's multiple flames, but there's the purple-esque flames, the blue-esque flames, the red ones, the orange ones, the yellow ones, and so on.
    4. I'd like a way to integrate the plugin into crabigator so its takes a single section instead of being full width.
Regardless, this is a beautiful mod, reminds me of the type of MUD hacking in the early-to-mid 90s that I used to love as a child, and I'm going to be stealing/integrating this into my workflows immediately.

BTW, I used to have different ASCII art images on each of my servers. Here's a sampling:

https://github.com/samuelclay/NewsBlur/blob/main/ansible/rol... https://github.com/samuelclay/NewsBlur/blob/main/ansible/rol... https://github.com/samuelclay/NewsBlur/blob/main/ansible/rol...

robbomacrae 2 hours ago

Thank you! Love that you did the server art!

I'm absolutely open to PR's. I tried to make it easy to add your own scenes. It's also MIT so feel free to take it and run with it..

1. Yep that makes sense. I haven't really tuned the phase progression much and it def needs a lot of work. For the rocket themes for now they are progressive only until they end but id like to give them the possibility of a bumpy ride so to speak.

2. Yep definitely. Going back to the original server idea.. I'd say it would be even necessary to be able to have a config to make one session have a specific (or random) scene.

3. Yes! I was just thinking about color palettes. ie company or flag colors.

4. https://github.com/samuelclay/crabigator https://drinkcrabigator.com to save others looking it up like I did. Looks great go for it!

I've got some different features in progression so feel free to throw these up as PR's. Otherwise I might get to the config or color palette one day.

Thanks!

burmask 4 hours ago

I kept scrolling down and my amazement grew as I could see all fun the op had making this library. Split-flap [https://ascii.rest/split-flap/] is awesome. And the nature ones [https://ascii.rest/fern/] got me thinking I need a digital frame to display them on. Would be some cool wall art. This ASCII sets a relaxed mood - except for that vibrating spinners page @ZeWaka :). Thank you for your contribution op!

bredren 5 hours ago

Neat. Some of my earliest online contributions were to local dial-up BBSs. I spent entire days making animated ascii sequences in the theme of the board.

thih9 5 hours ago

“Scenes” look like some roundabout attempt at dithering - not what I expected.

The rest is also very maximalist and ornamental. I like them as animations but wouldn’t like them as part of UI or TUI.

cousin_it 3 hours ago

This looks cool! I wonder if the same feeling can be achieved without a fixed grid though. Some kind of pointilist or halftone rendering, but with free positioning of points.

kirth_gersen 6 hours ago

beautiful. i don't see the pieces as animated, however. perhaps I am missing something?

crisnoble 6 hours ago

> plays it while it is on screen, and holds the first frame for anyone who prefers reduced motion.

herpdyderp 5 hours ago

Wish I could force it to play!

bas3line 5 hours ago

Thanks, Let me know if you face any issues!

mapshog 4 hours ago

Is it mobile only? I'm on a mac, it doesn't work in chrome / safari / firefox - no js errors, no apparent 404s or missing resources, all the pages load, the ascii art is first black and white then colors appear quickly but no animation. It's a shame because it looks beautiful on mobile.

bas3line 4 hours ago

Hi, sorry for this :) I am talking a look at it right now ^^

Sardtok 5 hours ago

Click on one to go to a page and see only that animation. The framerate is super low on my phone on the front page.

arikwald 3 hours ago

Beautiful! that's the true meaning of converting digits into art through custom algorithms. I reviewed the code and it's quite impressive. What I'm curious about is whether you had a predefined "bitmap-like" file which already contained all the values and then once loaded you applied the specific modification/animation algorithm to generate this unique effect. Reminds me the fascinating game graphics we had during the 80s on computers back then :). Yes back then I was fascinated with this kind of graphics, still am :)

ZeWaka 4 hours ago

Your spinners page is vibrating extremely angrily: https://ascii.rest/spinners, also some other components like the progress bar - whenever width changes.

smusamashah 3 hours ago

This reminds of another awesome actually ASCII animation library https://play.ertdfgcvb.xyz/

marinhero 5 hours ago

I was mesmerized by the animation in https://omp.sh/ yesterday but this takes it to the next level. What makes something like this be prevalent now if ASCII has been around for so long? is it just the trend?

moritzwarhier 5 hours ago

this is not ASCII, it looks like Unicode, but it's not even that, it's scripting and canvas rendering.

Text art itself is s prevalent because it borrows the appearance of careful crafting while it's generated by a program. Also, CLIs and text are more popular than GUIs these days, with many people.

Chat interfaces are almost like CLI! Markdown is getting more popular than binary Office text files!

Vibe coding with AI now commodifies the remaining manual steps: obtaining nice raster images, and feeding them into a text-art generator.

Or creating a script that renders them as dots on a canvas (what's done here).

ramblurr 5 hours ago

It's definitely a trend. But it's also arguably not ASCII art. But maybe I'm just moving the goal posts.

gfat 5 hours ago

Beautiful work. I did a similar effect for docs using a page turning animation. Might reach for this in the future.

5-0 3 hours ago

For new/young people who might wonder why old geezers sound all gatekeepy, this is what "ASCII art" used to mean in the before times: https://asciiarena.se

davidcollantes 4 hours ago

It would be awesome to be able to create these. If author is around, would you consider a creation tool as well?

bas3line 3 hours ago

Yes, I will take a look at this Thanks for the recommendation :D

cush 2 hours ago

That dithering is on point

bas3line 2 hours ago

Thank you!

cromka 5 hours ago

Cool, but the rows are shuffled here for about a half of those animations

tsukurimashou 5 hours ago

are you using firefox mobile?

cromka 4 hours ago

Brave on Android.

sosodev 4 hours ago

Not ASCII and a lot of art looks off and has broken animations.

I’m not one to say that all AI art is slop, but there’s so little effort here. Why exactly are so many praising this?

katzenq 41 minutes ago

I don't understand the point of praising somebody for their 'great work' when they clearly did none of the work and love to brag about that fact, and everybody here is aware of that

lordkrandel 6 hours ago

wonderful

bas3line 5 hours ago

Thank you!

shevy-java 5 hours ago

Watching Star Wars in ASCII is fun.