Added conversion function to java.awt.Color object