As the name indicates, this is a place for me to play around with C++. Historically, I've used Processing and p5.js for this sort of stuff, but wanted to try things out in C/C++.
A simple utility that takes a JPEG image and outputs the equivalent in ASCII art. Demos below:
Test Image | ASCII Image |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
There are two levels of detail (more mapped characters per level), which you can see above. All credits to test images go to https://testimages.org.
To learn more about threading, I wrote defn
, which continuously listens for words from stdin, looks up any submitted words on https://dictionaryapi.dev/, and crudely parses the JSON response to return the first definition it finds. Each word lookup is a new thread with pthreads and networking uses libcurl.
I used C++ bindings for Raylib to produce a moderately advanced fireworks simulation, making use of Euler integration to approximate particle behavior.
To try out web support, I used empscripten to compile the C++ to WASM. The out-of-the-box results were promising.
This time using a different graphics library, I created two self-contained demos.