Console animations

前端 未结 11 1688
误落风尘
误落风尘 2020-12-04 10:15

I just want to know how to create simple animations like blinking, moving stuffs on C# console applications. Is there any special method for this?

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 10:43

    Yes, there are quite a few methods for this.

    In particular, you may want to look at the following Console methods:

    1. SetCursorPosition (you can move the cursor around, and overwrite elements)
    2. MoveBufferArea (copy/paste over the top of regions)
    3. ForegroundColor and BackgroundColor (change coloring)

提交回复
热议问题