How do I get a rainbow color gradient in C#?

后端 未结 7 2139
太阳男子
太阳男子 2020-12-03 05:18

I\'d like to have an enumeration of Colors based on the rainbow colors (red... yellow... green... blue...).

I see basically two ways to do that:

  1. Cre

7条回答
  •  無奈伤痛
    2020-12-03 05:58

    http://colorfulconsole.com/ Allows pretty much what you're looking for, also can be installed as a NuGet package. It's not exactly a rainbow gradient. But it can write gradients to the console, also this confuses the IDE between the

    Colorful.Console
    

    and

    System.Console
    

    So make sure to define the right Console.

提交回复
热议问题