Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

"Terminal Velocity", a better Linux terminal graphics demo

by cavac (Parson)
on Feb 18, 2024 at 12:36 UTC ( [id://11157774]=CUFP: print w/replies, xml ) Need Help??

Last week i released a simple graphics demo for the Linux terminal (Fun with terminal color).

The low framerate and the mostly static graphics bothered me a bit. So, i , uhm did it yet again. Another demo, this time using Inline::CPP and massaged versions of tinyraytracer and tinyraycaster to provide some actual graphical content. As a matter of fact, Inline::CPP didn't work for my borrowed(*) code, and my understanding of CPP is a 20 years out of date. So i override the Inline::CPP RecDescent module to ignore my bugs. Hey, it's not production code, just a demo...

As in the last demo, your Terminal needs to support full RGB colors and have a size of at least 270x60 in size (characters, not pixels). SDL is sort-of-optional this time; the demo will run without sound if it can't load SDL. And as said above, you'll need to install Inline::CPP as well.

Here's the mercurial repository:

And the YouTube video: OBS and YT compression did munge the quality a bit, though. Probably my fault for not understanding the OBS settings...

(*) "but with every intention of giving it back"

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
  • Comment on "Terminal Velocity", a better Linux terminal graphics demo

Replies are listed 'Best First'.
Re: "Terminal Velocity", a better Linux terminal graphics demo
by etj (Deacon) on Feb 20, 2024 at 11:41 UTC
    Very neat! If Inline::CPP has bugs, please report them on GitHub. And looking at the code, it seems like this should "really" use (or could benefit greatly from using) Inline::Pdlpp?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://11157774]
Approved by marto
Front-paged by marto
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Find Nodes?
    Voting Booth?

    No recent polls found