rainbow distance