The constructor for TransaprencyAttributes is (int, float, int, int).When you use 0.5, the compiler makes it a double by default andsearches for a constructor of (int, double, int, int). Use 0.5f tocreate a variable of type float.