The synthesis of close-binary light curves. V. The