Adds Animation Scenario#2352
Merged
tig merged 6 commits intogui-cs:developfrom Feb 20, 2023
Merged
Conversation
This was referenced Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was thinking about how to get some more flashy demo Scenarios and knocked this together.
One of the common pitfalls users have is how to update UI from another thread so I have just used the basic
Taskclass andApplication.MainLoop.Invoke.Hopefully the Scenario achieves the following
I've added a dependency on 'SixLabours.ImageSharp' into UICatalog (but not main Terminal.Gui). I think if we are doing more truecolor stuff later on we will need an image library anyway for use in Scenarios that demo the full potential (e.g. open an image and show on screen in glorious truecolor).
The image itself is Community Commons attribution (which allows remixing).
I've used Braille for rendering by porting this nice algorithm which is MIT licensed (by Andraaspar) see https://github.com/andraaspar/bitmap-to-braille by
Sadly older terminals are not going to render Braille which might be a deal breaker. But it was fun to code so even if its not merge worthy I think it was still worthwhile.
Anyway let me know what you think. Another thought I had was whether given the new
LineCanvasstuff I could code 'snake'... should be pretty easy.Pull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)