Inigo Quilez's Distance Functions

How to make distance and distortion functions.