I'm trying to integrate the iPad example into my own code. My view controller has a nil background color. When invoking -changeColor, it sets the sourceColor, which triggers a crash in HSVFromUIColor.
It seems to be that HSVFromUIColor cannot handle a nil color. Perhaps add a check for if color is nil.