AnimalCrossingQR.AC.Palette.GetColorCode C# (CSharp) Method

GetColorCode() private static method

private static GetColorCode ( int index ) : byte
index int
return byte
        private static byte GetColorCode(int index)
        {
            if (index >= 144)
                return (byte)(((index - 144) << 4) | 0x0F);

            return (byte)(((index / 9) << 4) | (index % 9));
        }