예제 #1
0
 public bool Match(GBPalette other)
 {
     for (int i = 0; i < MaxLength; i++)
     {
         if (Colors[i] != other.Colors[i])
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
0
 public static Color ToColor(this GBColor color, GBPalette pallete = null)
 {
     pallete = pallete ?? GBPalette.Default;
     return(pallete.Colors[(int)color]);
 }