示例#1
0
 /// <summary>
 /// Returns a darker color of specified color.
 /// </summary>
 /// <param name="color">Original color to be changed.</param>
 /// <returns>Darker color.</returns>
 public static SolidColor Dark(SolidColor color)
 {
     return(SetBrightness(-0.3f, color));
 }
示例#2
0
 /// <summary>
 /// Returns a lighter color of specified color.
 /// </summary>
 /// <param name="color">Original color to be changed.</param>
 /// <returns>Lighter color.</returns>
 public static SolidColor Light(SolidColor color)
 {
     return(SetBrightness(0.3f, color));
 }