Made the fill code work based on a given color.