示例#1
0
 /// <summary>
 /// Returns a new color with the given alpha.
 /// </summary>
 public Color ColorDarkWithAlpha(float alpha)
 {
     return(ColorDark.WithAlpha(alpha));
 }
示例#2
0
 /// <summary>
 /// Returns a new color with the RGB values scaled so that the color has the given brightness.
 /// <para>If the color is too dark, a grey is returned with the right brighness. The alpha is left uncanged.</para>
 /// </summary>
 public Color ColorDarkWithBrightness(float brightness)
 {
     return(ColorDark.WithBrightness(brightness));
 }