예제 #1
0
 public static Color32 Invert(this Color32 color)
 {
     return(new Color32(255 - color.r, 255 - color.g, 255 - color.b, color.a));
 }
예제 #2
0
 public static Color32 WithAlpha(this Color32 color, int alpha)
 {
     return(new Color32(color.r, color.g, color.b, alpha));
 }
예제 #3
0
 public static Color32 WithGreen(this Color32 color, int green)
 {
     return(new Color32(color.r, green, color.b, color.a));
 }
예제 #4
0
 public static Color32 WithBlue(this Color32 color, int blue)
 {
     return(new Color32(color.r, color.g, blue, color.a));
 }
예제 #5
0
 public static Color32 WithRed(this Color32 color, int red)
 {
     return(new Color32(red, color.g, color.b, color.a));
 }