Convert an RGBA value

r: 0-255, g: 0-255, b: 0-255, a:0-1