Able
Askowl Base Library Enabler
RichText.cs
1 // Copyright 2018 (C) paul@marrington.net http://www.askowl.net/unity-packages
2 
3 namespace Askowl.RichText {
4  /// <a href="http://bit.ly/2OpSm3i">Color class with American spelling</a><inheritdoc />
5  public class Color : Colour { }
6 
7  /// <a href="http://bit.ly/2OpSm3i">Static helper for text colour</a>
8  public class Colour {
9  /// <a href="http://bit.ly/2OpSm3i">List of recognised colours. Use #rrggbb as an alternative</a>
10  public static string
11  Aqua = "aqua", Black = " black", Blue = "blue",
12  Brown = "brown", Cyan = "cyan", DarkBlue = "darkblue",
13  Fuchsia = "fuchsia", Green = "green", Grey = "grey",
14  LightBlue = "lightblue", Lime = "lime", Magenta = "magenta",
15  Maroon = "maroon", Navy = "navy", Olive = "olive",
16  Orange = "orange", Purple = "purple", Red = "red",
17  Silver = "silver", Teal = "teal", White = "white",
18  Yellow = "yellow";
19 
20  /// <a href=""></a>
21  public static string Tag(string colour, string text) => $"<color={colour}>{text}</color>";
22  }
23 }
Definition: Clock.cs:3
Static helper for text colour
Definition: RichText.cs:8
Color class with American spelling
Definition: RichText.cs:5