As far as I know, the original GH code was from @DavidRutten here:
I’ve used it many times for creating ripple patterns: