News for hackers. Stuff that matters.
Re:ASCII Play by thristian on Sunday August 01, 2021 @02:12AM (#28024207)
Annoyingly, the canvas is hard-coded to use only the "Simple Console" font; if your browser doesn't load the font for whatever reason, it shows up in a proportional typeface which ruins the effect.

Changing `font-family: "Simple Console"` to `font-family: "Simple Console", monospace` would fix it.

Re:ASCII Play by agys on Sunday August 01, 2021 @03:05AM (#28024392)
Thank you, will fix!

Note: some CSS attributes for the pre (or canvas) can be set trough an exported “settings” object:

  export const settings = { fontFamily : 'Monaco' }
Re:ASCII Play by tabokie on Saturday July 31, 2021 @11:34PM (#28023591)
Another commercial website that heavily uses ASCII animation: https://oxide.computer/
Re:ASCII Play by agys on Sunday August 01, 2021 @05:02AM (#28024924)
That’s a very slick page!

By inspecting the animated diagrams they switch from text rendering in a PRE element to a CANVAS renderer when the page width shrinks below a certain size.

Re:ASCII Play by atulvi on Saturday July 31, 2021 @10:51PM (#28023415)
I thought this was running on a canvas element, but no.. characters are nested inside spans. That's amazing.
Re:ASCII Play by bskrobisz on Saturday July 31, 2021 @10:26PM (#28023267)
Very cool! There's another site I used to frequent with a similar bent, focused on golfing: https://www.dwitter.net/
Re:ASCII Play by elliottcarlson on Sunday August 01, 2021 @01:50AM (#28024107)
I made a similar feature as a Tumblr post type during an internal hackathon -- shame that never got to see the light of day as a production feature. Processing post types, that allowed others to reblog and make revisions. Would've been painful to get it ready for a mobile release unfortunately.
Re:ASCII Play by ggeorgovassilis on Sunday August 01, 2021 @06:28AM (#28025250)
Friendly plug: design and run ASCII art animations in the browser and export to animated GIF: https://animasci.com/
Re:ASCII Play by imglorp on Friday July 30, 2021 @01:57PM (#28010557)
It's cool but the "r" in that font is distracting.
Re:ASCII Play by agys on Sunday August 01, 2021 @03:04AM (#28024386)
The “r”, which looks a bit like a hook, is what makes this font special. The reason it was chosen is that the name of the website contains an “r”…
Re:ASCII Play by selficist on Sunday August 01, 2021 @01:52AM (#28024117)
I kinda liked the font, but agree with you on the 'r', looks like a something bent over lol
Re:ASCII Play by kaeruct on Sunday August 01, 2021 @07:17AM (#28025462)
I love it. Just a small nitpick, it broke my back button :(
Re:ASCII Play by agys on Sunday August 01, 2021 @07:25AM (#28025499)
Strange. In which situation exactly if I may ask (sorry if I’m using the thread for debugging purposes)?
Re:ASCII Play by stkdump on Sunday August 01, 2021 @01:33AM (#28024029)
Is this a non-GPU variant of shadertoy?
Re:ASCII Play by selficist on Sunday August 01, 2021 @01:51AM (#28024109)
what is the monospace font used for the code shown there?
Re:ASCII Play by who23 on Sunday August 01, 2021 @02:06AM (#28024176)
after a little digging it looks like a custom font called 'Simple Console', though it's not available anywhere I can find other than through the website (which states it's licensed only for use on their website, not for download or use on other sites)
Re:ASCII Play by agys on Sunday August 01, 2021 @03:02AM (#28024375)
It is a custom version of “Simple” by Norm made to include some of the box drawing glyphs.

https://lineto.com/typefaces/simple

Re:ASCII Play by agys on Sunday August 01, 2021 @03:32AM (#28024507)
Re:ASCII Play by who23 on Sunday August 01, 2021 @02:03AM (#28024160)
looks like jetbrains mono?
Re:ASCII Play by buitreVirtual on Sunday August 01, 2021 @04:37AM (#28024779)
It should come with an epilepsia warning.