alexharri

Joined 4 years ago

Karma
1,074
Submissions
72
Member since
Nov 8
Website: https://alexharri.com GitHub: https://github.com/alexharri
View on Hacker News

Recent submissions

Comment · 9 months ago
The ASCII moon tool is fun to play around with!

No plans to build a library right now, but who knows. Feel free to grab what you need from the website's code!

If I were to build a library, I'd probably convert the shaders from WebGL 2 to WebGL 1 for better browser compatibility. Would also need to figure out a good API for the library.

One thing that a library would need to deal with is that the shape vector depends on the font family, so the user of the library would need to precompute the shape vectors with the input font family. The sampling circles, internal and external, would likely need to be positioned differently for different font families. It's not obvious to me how a user of the library would go about that. There'd probably need to be some tool for that (I have a script to generate the shape vectors with a hardcoded link to a font in the website repository).

Comment · 9 months ago
Comment · 9 months ago
Looks very cool! Thanks for sharing.

The resulting ASCII looks dithered, with sequences like e.g. :-:-:-:-:. I'd guess that it's an intentional effect since a flat surface would naturally repeat the same character, right? Where does the dithering come from?

Comment · 9 months ago
Just pushed a fix, should be live in a minute or two, thanks again!
Comment · 9 months ago
Good catch, thanks! I’ll push a fix once I’m home
Comment · 9 months ago
Yeah, this is good to point out. The primary constraint I was working around was "this needs to run at a smooth 60FPS on mobile devices" which limits the type and amount of work one can do on each frame.

I'd probably arrive at a very different solution if coming at this from a "you've got infinite compute resources, maximize quality" angle.

Comment · 9 months ago
Comment · 10 months ago
Happy New Year from Reykjavík, Iceland!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton