Converts a color into a Texture2D format which can be written to a file or can be used as a regular texture