Better color algorithm, also use RGBA.