absorbLayer function

Absorb a layer into its surrounding color patches