Adding a method for converting a color to transparent.