mafik / ansi-art Goto Github PK
View Code? Open in Web Editor NEWC++ ANSI🔥Art Renderer
License: MIT License
C++ ANSI🔥Art Renderer
License: MIT License
Nice. I'm curious what font, emulator, width, etc were used to produce sample1.png? It looks crisper than example-result.png, which is what the result looks like on my setup.
Doesn't seem to be working on the latest Firefox, 103.0.
App doesn't function, and dumps this to the console:
Uncaught ReferenceError: OffscreenCanvas is not defined
LoadImage https://mrogalski.eu/ansi-art/script.js:104
onRuntimeInitialized https://mrogalski.eu/ansi-art/script.js:136
doRun https://mrogalski.eu/ansi-art/ansi.js:1
run https://mrogalski.eu/ansi-art/ansi.js:1
runCaller https://mrogalski.eu/ansi-art/ansi.js:1
removeRunDependency https://mrogalski.eu/ansi-art/ansi.js:1
receiveInstance https://mrogalski.eu/ansi-art/ansi.js:1
onmessage https://mrogalski.eu/ansi-art/ansi.js:1
loadWasmModuleToWorker https://mrogalski.eu/ansi-art/ansi.js:1
receiveInstance https://mrogalski.eu/ansi-art/ansi.js:1
receiveInstance https://mrogalski.eu/ansi-art/ansi.js:1
receiveInstantiationResult https://mrogalski.eu/ansi-art/ansi.js:1
promise callback*createWasm/instantiateAsync/< https://mrogalski.eu/ansi-art/ansi.js:1
promise callback*instantiateAsync https://mrogalski.eu/ansi-art/ansi.js:1
createWasm https://mrogalski.eu/ansi-art/ansi.js:1
<anonymous> https://mrogalski.eu/ansi-art/ansi.js:1
script.js:104:16
Looks cool, though. Can't wait to give it a spin. 😎
Similar to the forbidden list of characters, having a allow list of characters would be beneficial if a user wanted to recreate an image using only a selection of characters.
This behavior can be achieved with setting all non wanted characters in the forbidden list, but having an allow list can be a much easier option if the user only wants a relatively small list of characters.
Neat package; better output than most ANSI renderers I've seen.
Few thoughts:
ogg
file from the repo that serves no purposeexample-image.h
and example-font.h
. I think most people just want maf --font <optional font> image.png
and get output. Next level would be a simple makefile that just has make
and make install
to .local/bin
or whatever.g++ -pthread -std=c++2a -I. example.cc maf/*.cc `pkg-config --cflags --libs freetype2` -o example
docs\
folder?cwebp -q 80 sample1.png -o sample1.webp
:D
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.