Add toSDLColor function.