public static Color IntToColor(int i, float a) { int num = AstarMath.Bit(i, 1) + AstarMath.Bit(i, 3) * 2 + 1; int num2 = AstarMath.Bit(i, 2) + AstarMath.Bit(i, 4) * 2 + 1; int num3 = AstarMath.Bit(i, 0) + AstarMath.Bit(i, 5) * 2 + 1; return(new Color((float)num * 0.25f, (float)num2 * 0.25f, (float)num3 * 0.25f, a)); }