🧩 ➥ Library for creating ASCII animations for terminals.
MIT License
🧩 ➥ Library for creating ASCII animations for terminals.
The latest version is available on NuGet. To install, run:
dotnet add package StarASCII --version *
Replace the asterisk (*) with the desired version.
Alternatively, clone the repository and reference it manually:
git clone https://github.com/Starciad/StarASCII.git
After installation, add the StarASCII
namespace:
using StarASCII;
You can now use the SAnimation
class to create and run animations:
SAnimation anim = new SAnimation();
Next, add frames using the AddFrame(SFrame)
method:
SFrame frame = new SFrame(string, uint);
anim.AddFrame(frame);
string
: content of the frame.uint
: duration in milliseconds.Once all frames are added, run the animation:
anim.Play();
[!IMPORTANT] When calling
Play()
, the main thread will be paused according to the frame durations.
Explore the classes and features to fully customize your animations.
const
or readonly static
properties to avoid hardcoded ASCII art.Try the sample project here. You can also view some GIFs showcasing the library's capabilities:
Have a problem? Open an issue!
Contributions are welcome! Please check the CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See the LICENSE.md file for details.