he could see the whitecaps forming and breaking on the white sandy foreshore , coming to rest near the high tide line , and then they sucked back out too repeat the process leaving a foamy residue on the sand .