better error checking on yk_colorWithRGBA