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