How to create ASCII animation in a console application using Python 3.x?

前端 未结 5 759
有刺的猬
有刺的猬 2020-12-08 18:01

I would like to port this question to Python (Windows + Linux + Mac Os)

How to create ASCII animation in Windows Console application using C#?

Thank you!

5条回答
  •  Happy的楠姐
    2020-12-08 18:26

    This is precisely the sort of application that I created asciimatics for.

    It is a cross-platform console API with support for generating animated scenes from a rich set of text effects. It has been proved to work on various flavours of CentOS and Windows and OSX.

    Samples of what is possible are available from the gallery. Here's a sample similar to the animated GIF code provided in other answers.

    I assume you're just looking for a way to do any animation, but if you really wanted to replicate the steam train, you could convert it to a Sprite and give it a Path that just runs it across the Screen, then play it as part of a Scene. Full explanations of the objects can be found in the docs.

提交回复
热议问题