Randall Page style patterns on surface

Dear all,
Where to start!
I’m trying to imagine a code that might apply ‘pipe’ distortions like this onto a curved surface.
I’m currently playing around with parakeet and kangaroo inflate to see if anything comes to mind, but coming unstuck at the moment.
Any ideas much appreciated!